Btrfs: fix wrong mirror number tuning
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 19 Jun 2013 10:20:17 +0000 (18:20 +0800)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 2 Jul 2013 15:50:50 +0000 (11:50 -0400)
commita70c6172e714c70439b8321a201635f56a178913
tree29dba6f425efa0c349a1aa3b43c296d3eac8e427
parente6da5d2ec9870ddadf4dbc6a1835470636df25bb
Btrfs: fix wrong mirror number tuning

Now reading the data from the target device of the replace operation is allowed,
so the mirror number that is greater than the stripes number of a chunk is valid,
we will tune it when we find there is no target device later. Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/volumes.c