summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-11-03 12:17:49 -0400
committerChris Mason <chris.mason@oracle.com>2011-11-03 12:17:49 -0400
commit882895d4119992af2c9b654dbb3ac88cd17fa810 (patch)
tree7baacac63cd091886f68b3aea30f8314c5301efe /volumes.c
parent6055e736045d7e1f83ea77551941c7745ad36ec2 (diff)
Btrfs: fix raid10 reading math
The btrfs-progs raid10 code has been silently reading the wrong raid10 block forever. We didn't notice because it was always fixed up by the retry code. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/volumes.c b/volumes.c
index 03bfb8cc..4c29cefd 100644
--- a/volumes.c
+++ b/volumes.c
@@ -1170,8 +1170,6 @@ again:
multi->num_stripes = map->sub_stripes;
else if (mirror_num)
stripe_index += mirror_num - 1;
- else
- stripe_index = stripe_nr % map->sub_stripes;
stripe_nr = stripe_nr / factor;
} else if (map->type & BTRFS_BLOCK_GROUP_DUP) {