Btrfs: sort raid_map before adding tgtdev stripes
authorZhao Lei <[email protected]>
Tue, 20 Jan 2015 07:11:32 +0000 (15:11 +0800)
committerChris Mason <[email protected]>
Thu, 22 Jan 2015 02:06:47 +0000 (18:06 -0800)
commitcc7539edea6dd02536d56f0a3405b8bb7ae24168
treecd1ab7dbecc7d7d4984002915277c2cba54989fc
parente34c330d639177bbb345bf2bde16613b00cc6e6b
Btrfs: sort raid_map before adding tgtdev stripes

It can avoid complex calculation of real stripes in sort,
moreover, we can clean up code of sorting tgtdev_map because it
will be in order initially.

Signed-off-by: Zhao Lei <[email protected]>
Signed-off-by: Miao Xie <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/volumes.c