diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index cb94310db072..3d2495e83e62 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -391,7 +391,7 @@ int btrfs_dev_replace_start(struct btrfs_root *root, | |||
391 | args->result = BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR; | 391 | args->result = BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR; |
392 | btrfs_dev_replace_unlock(dev_replace); | 392 | btrfs_dev_replace_unlock(dev_replace); |
393 | 393 | ||
394 | btrfs_wait_all_ordered_extents(root->fs_info); | 394 | btrfs_wait_ordered_roots(root->fs_info, -1); |
395 | 395 | ||
396 | /* force writing the updated state information to disk */ | 396 | /* force writing the updated state information to disk */ |
397 | trans = btrfs_start_transaction(root, 0); | 397 | trans = btrfs_start_transaction(root, 0); |
@@ -466,7 +466,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, | |||
466 | mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); | 466 | mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); |
467 | return ret; | 467 | return ret; |
468 | } | 468 | } |
469 | btrfs_wait_all_ordered_extents(root->fs_info); | 469 | btrfs_wait_ordered_roots(root->fs_info, -1); |
470 | 470 | ||
471 | trans = btrfs_start_transaction(root, 0); | 471 | trans = btrfs_start_transaction(root, 0); |
472 | if (IS_ERR(trans)) { | 472 | if (IS_ERR(trans)) { |