|
@@ -2717,8 +2717,6 @@ int scrub_enumerate_chunks(struct scrub_ctx *sctx,
|
|
|
mutex_unlock(&fs_info->scrub_lock);
|
|
mutex_unlock(&fs_info->scrub_lock);
|
|
|
wake_up(&fs_info->scrub_pause_wait);
|
|
wake_up(&fs_info->scrub_pause_wait);
|
|
|
|
|
|
|
|
- dev_replace->cursor_left = dev_replace->cursor_right;
|
|
|
|
|
- dev_replace->item_needs_writeback = 1;
|
|
|
|
|
btrfs_put_block_group(cache);
|
|
btrfs_put_block_group(cache);
|
|
|
if (ret)
|
|
if (ret)
|
|
|
break;
|
|
break;
|
|
@@ -2732,6 +2730,9 @@ int scrub_enumerate_chunks(struct scrub_ctx *sctx,
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ dev_replace->cursor_left = dev_replace->cursor_right;
|
|
|
|
|
+ dev_replace->item_needs_writeback = 1;
|
|
|
|
|
+
|
|
|
key.offset = found_key.offset + length;
|
|
key.offset = found_key.offset + length;
|
|
|
btrfs_release_path(path);
|
|
btrfs_release_path(path);
|
|
|
}
|
|
}
|