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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index bba7f1a5e9f3..b5c2ad8fe2ca 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -7795,6 +7795,14 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
7795 return inode; 7795 return inode;
7796} 7796}
7797 7797
7798#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
7799void btrfs_test_destroy_inode(struct inode *inode)
7800{
7801 btrfs_drop_extent_cache(inode, 0, (u64)-1, 0);
7802 kmem_cache_free(btrfs_inode_cachep, BTRFS_I(inode));
7803}
7804#endif
7805
7798static void btrfs_i_callback(struct rcu_head *head) 7806static void btrfs_i_callback(struct rcu_head *head)
7799{ 7807{
7800 struct inode *inode = container_of(head, struct inode, i_rcu); 7808 struct inode *inode = container_of(head, struct inode, i_rcu);