OSDN Git Service

btrfs: raid56: simplify sort_parity_stripes
authorDavid Sterba <dsterba@suse.com>
Thu, 28 Nov 2019 14:31:17 +0000 (15:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:45 +0000 (17:01 +0100)
commiteeb6f17200e20fbdc0ab472def6cf41a2a10e4eb
treecf81488bb3d234b4217ab0df6bb684ab92339e88
parent7e8f19e50e3ccf0608133cd76e845c282cd84a55
btrfs: raid56: simplify sort_parity_stripes

Remove trivial comprator and open coded swap of two values.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c