]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: sort raid_map before adding tgtdev stripes
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 20 Jan 2015 07:11:32 +0000 (15:11 +0800)
committerChris Mason <clm@fb.com>
Thu, 22 Jan 2015 02:06:47 +0000 (18:06 -0800)
commit4142964b5a86b99b7a808304147d84bcb1e7f00d
treecd1ab7dbecc7d7d4984002915277c2cba54989fc
parentb65637d54ba8ce0cca513713e138d253608999ef
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 <zhaolei@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c