mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
This commit is contained in:
parent
05a5c55dfc
commit
db34be19c4
1 changed files with 2 additions and 4 deletions
|
|
@ -594,12 +594,10 @@ static int rbio_can_merge(struct btrfs_raid_bio *last,
|
|||
* bio list here, anyone else that wants to
|
||||
* change this stripe needs to do their own rmw.
|
||||
*/
|
||||
if (last->operation == BTRFS_RBIO_PARITY_SCRUB ||
|
||||
cur->operation == BTRFS_RBIO_PARITY_SCRUB)
|
||||
if (last->operation == BTRFS_RBIO_PARITY_SCRUB)
|
||||
return 0;
|
||||
|
||||
if (last->operation == BTRFS_RBIO_REBUILD_MISSING ||
|
||||
cur->operation == BTRFS_RBIO_REBUILD_MISSING)
|
||||
if (last->operation == BTRFS_RBIO_REBUILD_MISSING)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue