forked from Minki/linux
btrfs: raid56: don't opencode swap() in __raid_recover_end_io
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
8302586327
commit
b7d2083a36
@ -1862,11 +1862,8 @@ static void __raid_recover_end_io(struct btrfs_raid_bio *rbio)
|
||||
}
|
||||
|
||||
/* make sure our ps and qs are in order */
|
||||
if (faila > failb) {
|
||||
int tmp = failb;
|
||||
failb = faila;
|
||||
faila = tmp;
|
||||
}
|
||||
if (faila > failb)
|
||||
swap(faila, failb);
|
||||
|
||||
/* if the q stripe is failed, do a pstripe reconstruction
|
||||
* from the xors.
|
||||
|
Loading…
Reference in New Issue
Block a user