Btrfs: introduce per-subvolume delalloc inode list
[linux-2.6-block.git] / fs / btrfs / dev-replace.c
index 65241f32d3f8aec282a80d443c7acc677f68726a..2af312b6fb1fb24da5679c1bc2732dd0accfe969 100644 (file)
@@ -470,7 +470,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
         * flush all outstanding I/O and inode extent mappings before the
         * copy operation is declared as being finished
         */
-       ret = btrfs_start_delalloc_inodes(root, 0);
+       ret = btrfs_start_all_delalloc_inodes(root->fs_info, 0);
        if (ret) {
                mutex_unlock(&dev_replace->lock_finishing_cancel_unmount);
                return ret;