diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-11-14 10:45:42 +0100 |
---|---|---|
committer | Miao Xie <miaox@cn.fujitsu.com> | 2014-12-03 03:18:46 +0100 |
commit | 7603597690147a16b5cc77047d7570fa22a22673 (patch) | |
tree | 6fc1618acba90230ea06986eee104c962475795a /fs/btrfs/scrub.c | |
parent | Btrfs, replace: write dirty pages into the replace target device (diff) | |
download | linux-7603597690147a16b5cc77047d7570fa22a22673.tar.xz linux-7603597690147a16b5cc77047d7570fa22a22673.zip |
Btrfs, replace: write raid56 parity into the replace target device
This function reused the code of parity scrub, and we just write
the right parity or corrected parity into the target device before
the parity scrub end.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 7f95afcf9fd3..0ae837fd676d 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -2714,7 +2714,7 @@ static void scrub_parity_check_and_repair(struct scrub_parity *sparity) goto out; length = sparity->logic_end - sparity->logic_start + 1; - ret = btrfs_map_sblock(sctx->dev_root->fs_info, REQ_GET_READ_MIRRORS, + ret = btrfs_map_sblock(sctx->dev_root->fs_info, WRITE, sparity->logic_start, &length, &bbio, 0, &raid_map); if (ret || !bbio || !raid_map) |