mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +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 */
|
/* make sure our ps and qs are in order */
|
||||||
if (faila > failb) {
|
if (faila > failb)
|
||||||
int tmp = failb;
|
swap(faila, failb);
|
||||||
failb = faila;
|
|
||||||
faila = tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* if the q stripe is failed, do a pstripe reconstruction
|
/* if the q stripe is failed, do a pstripe reconstruction
|
||||||
* from the xors.
|
* from the xors.
|
||||||
|
|
Loading…
Reference in a new issue