diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-05-15 03:48:23 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-06-14 11:29:41 -0400 |
commit | 199c2a9c3d1389db7f7a211e64f6809d352ce5f6 (patch) | |
tree | 8f1e921492d1d5a7b61d98900e8cb3b1b40abdba /fs/btrfs/inode.c | |
parent | eb73c1b7cea7d533288ef5297a0ea0e159db85b0 (diff) |
Btrfs: introduce per-subvolume ordered extent list
The reason we introduce per-subvolume ordered extent list is the same
as the 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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 18191f193b47..51520755f4dc 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -7991,9 +7991,9 @@ void btrfs_destroy_inode(struct inode *inode) | |||
7991 | */ | 7991 | */ |
7992 | smp_mb(); | 7992 | smp_mb(); |
7993 | if (!list_empty(&BTRFS_I(inode)->ordered_operations)) { | 7993 | if (!list_empty(&BTRFS_I(inode)->ordered_operations)) { |
7994 | spin_lock(&root->fs_info->ordered_extent_lock); | 7994 | spin_lock(&root->fs_info->ordered_root_lock); |
7995 | list_del_init(&BTRFS_I(inode)->ordered_operations); | 7995 | list_del_init(&BTRFS_I(inode)->ordered_operations); |
7996 | spin_unlock(&root->fs_info->ordered_extent_lock); | 7996 | spin_unlock(&root->fs_info->ordered_root_lock); |
7997 | } | 7997 | } |
7998 | 7998 | ||
7999 | if (test_bit(BTRFS_INODE_HAS_ORPHAN_ITEM, | 7999 | if (test_bit(BTRFS_INODE_HAS_ORPHAN_ITEM, |