mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
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
1 changed files with 2 additions and 5 deletions
|
@ -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 a new issue