]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: let allocation start from the right raid type
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 27 Dec 2012 09:01:24 +0000 (09:01 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:52:52 +0000 (13:52 -0500)
commit51d594f90d870e81cca07e5a65e20466f4f4197b
tree0c469fc83026b8756db5bc9f1f343768cb5dc0a1
parent4ebf9a006e04ffb8b9bbb738fe06777d0251386c
Btrfs: let allocation start from the right raid type

This'd avoid us empty looping.

Say we have only one disk and the metadata raid type will be defaultly DUP,
and we do not need to start from index=0(RAID10) and get over two empty
loops to index=2(DUP).

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c