diff options
author | Omar Sandoval <osandov@fb.com> | 2015-06-19 20:52:49 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-08-09 16:34:26 +0200 |
commit | 7cb2c4202ed5730ecbf13c5d34c2cadff4cbe88f (patch) | |
tree | 060a03b7ad726216243bcebfc84878be0c43f6c7 /lib/fdt_ro.c | |
parent | Btrfs: remove misleading handling of missing device scrub (diff) | |
download | linux-7cb2c4202ed5730ecbf13c5d34c2cadff4cbe88f.tar.xz linux-7cb2c4202ed5730ecbf13c5d34c2cadff4cbe88f.zip |
Btrfs: count devices correctly in readahead during RAID 5/6 replace
Commit 5fbc7c59fd22 ("Btrfs: fix unfinished readahead thread for raid5/6
degraded mounting") fixed a problem where we would skip a missing device
when we shouldn't have because there are no other mirrors to read from
in RAID 5/6. After commit 2c8cdd6ee4e7 ("Btrfs, replace: write dirty
pages into the replace target device"), the fix doesn't work when we're
doing a missing device replace on RAID 5/6 because the replace device is
counted as a mirror so we're tricked into thinking we can safely skip
the missing device. The fix is to count only the real stripes and decide
based on that.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'lib/fdt_ro.c')
0 files changed, 0 insertions, 0 deletions