aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 9007bbd01dbf..d97b69afbbfb 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6632,9 +6632,8 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
6632 ei->index_cnt = (u64)-1; 6632 ei->index_cnt = (u64)-1;
6633 ei->last_unlink_trans = 0; 6633 ei->last_unlink_trans = 0;
6634 6634
6635 spin_lock_init(&ei->accounting_lock);
6636 atomic_set(&ei->outstanding_extents, 0); 6635 atomic_set(&ei->outstanding_extents, 0);
6637 ei->reserved_extents = 0; 6636 atomic_set(&ei->reserved_extents, 0);
6638 6637
6639 ei->ordered_data_close = 0; 6638 ei->ordered_data_close = 0;
6640 ei->orphan_meta_reserved = 0; 6639 ei->orphan_meta_reserved = 0;
@@ -6670,7 +6669,7 @@ void btrfs_destroy_inode(struct inode *inode)
6670 WARN_ON(!list_empty(&inode->i_dentry)); 6669 WARN_ON(!list_empty(&inode->i_dentry));
6671 WARN_ON(inode->i_data.nrpages); 6670 WARN_ON(inode->i_data.nrpages);
6672 WARN_ON(atomic_read(&BTRFS_I(inode)->outstanding_extents)); 6671 WARN_ON(atomic_read(&BTRFS_I(inode)->outstanding_extents));
6673 WARN_ON(BTRFS_I(inode)->reserved_extents); 6672 WARN_ON(atomic_read(&BTRFS_I(inode)->reserved_extents));
6674 6673
6675 /* 6674 /*
6676 * This can happen where we create an inode, but somebody else also 6675 * This can happen where we create an inode, but somebody else also