OSDN Git Service

Btrfs: remove redundant check in rbio_can_merge
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 4 Dec 2017 22:40:35 +0000 (15:40 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:20 +0000 (16:08 +0100)
commitdb34be19c4f0f5512a4adf63713e4f5494618ead
treed68c3427f24c6d6e3a2fe55bc33c8b20c96c0f2f
parent05a5c55dfc308544200752f2f0860c6bdd9b7281
Btrfs: remove redundant check in rbio_can_merge

Given the above
'
if (last->operation != cur->operation)
return 0;
',
it's guaranteed that two operations are same.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c