aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2013-05-15 03:48:22 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-06-14 11:29:40 -0400
commiteb73c1b7cea7d533288ef5297a0ea0e159db85b0 (patch)
treecb6e26e79ab0c11eed7f1db8967e37dbf770f974 /fs/btrfs/relocation.c
parentb0feb9d96e71a88d7eec56f41b8f23e92af889b0 (diff)
Btrfs: introduce per-subvolume delalloc inode list
When we create a snapshot, we need flush all delalloc inodes in the fs, just flushing the inodes in the source tree is OK. So we introduce per-subvolume delalloc inode list. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r--fs/btrfs/relocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index f46b4cca4fa2..f6e1b54f05d8 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -4159,7 +4159,7 @@ int btrfs_relocate_block_group(struct btrfs_root *extent_root, u64 group_start)
4159 (unsigned long long)rc->block_group->key.objectid, 4159 (unsigned long long)rc->block_group->key.objectid,
4160 (unsigned long long)rc->block_group->flags); 4160 (unsigned long long)rc->block_group->flags);
4161 4161
4162 ret = btrfs_start_delalloc_inodes(fs_info->tree_root, 0); 4162 ret = btrfs_start_all_delalloc_inodes(fs_info, 0);
4163 if (ret < 0) { 4163 if (ret < 0) {
4164 err = ret; 4164 err = ret;
4165 goto out; 4165 goto out;