mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
eb73c1b7ce
commit
199c2a9c3d
10 changed files with 144 additions and 59 deletions
|
@ -7991,9 +7991,9 @@ void btrfs_destroy_inode(struct inode *inode)
|
|||
*/
|
||||
smp_mb();
|
||||
if (!list_empty(&BTRFS_I(inode)->ordered_operations)) {
|
||||
spin_lock(&root->fs_info->ordered_extent_lock);
|
||||
spin_lock(&root->fs_info->ordered_root_lock);
|
||||
list_del_init(&BTRFS_I(inode)->ordered_operations);
|
||||
spin_unlock(&root->fs_info->ordered_extent_lock);
|
||||
spin_unlock(&root->fs_info->ordered_root_lock);
|
||||
}
|
||||
|
||||
if (test_bit(BTRFS_INODE_HAS_ORPHAN_ITEM,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue