]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dbf8c2d5bba7af74ecac3dd1065b64c213f3946
treed68c3427f24c6d6e3a2fe55bc33c8b20c96c0f2f
parentbd6bb77589f5881553281005cdc09da67d79743c
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