btrfs: Fix data checksum error cause by replace with io-load.
[deliverable/linux.git] / fs / btrfs / volumes.c
index fbe7c104531c9e5eaf8b347f46d0b8a783f88322..b7fb0b297f7178b9ab37ca968d2da1e1d391a370 100644 (file)
@@ -2785,7 +2785,9 @@ static int btrfs_relocate_chunk(struct btrfs_root *root,
                return -ENOSPC;
 
        /* step one, relocate all the extents inside this chunk */
+       btrfs_scrub_pause(root);
        ret = btrfs_relocate_block_group(extent_root, chunk_offset);
+       btrfs_scrub_continue(root);
        if (ret)
                return ret;
 
This page took 0.025813 seconds and 5 git commands to generate.