|
@@ -229,7 +229,7 @@ static struct inode *alloc_inode(struct super_block *sb)
|
|
return inode;
|
|
return inode;
|
|
}
|
|
}
|
|
|
|
|
|
-void destroy_inode(struct inode *inode)
|
|
|
|
|
|
+void __destroy_inode(struct inode *inode)
|
|
{
|
|
{
|
|
BUG_ON(inode_has_buffers(inode));
|
|
BUG_ON(inode_has_buffers(inode));
|
|
ima_inode_free(inode);
|
|
ima_inode_free(inode);
|
|
@@ -241,13 +241,17 @@ void destroy_inode(struct inode *inode)
|
|
if (inode->i_default_acl && inode->i_default_acl != ACL_NOT_CACHED)
|
|
if (inode->i_default_acl && inode->i_default_acl != ACL_NOT_CACHED)
|
|
posix_acl_release(inode->i_default_acl);
|
|
posix_acl_release(inode->i_default_acl);
|
|
#endif
|
|
#endif
|
|
|
|
+}
|
|
|
|
+EXPORT_SYMBOL(__destroy_inode);
|
|
|
|
+
|
|
|
|
+void destroy_inode(struct inode *inode)
|
|
|
|
+{
|
|
|
|
+ __destroy_inode(inode);
|
|
if (inode->i_sb->s_op->destroy_inode)
|
|
if (inode->i_sb->s_op->destroy_inode)
|
|
inode->i_sb->s_op->destroy_inode(inode);
|
|
inode->i_sb->s_op->destroy_inode(inode);
|
|
else
|
|
else
|
|
kmem_cache_free(inode_cachep, (inode));
|
|
kmem_cache_free(inode_cachep, (inode));
|
|
}
|
|
}
|
|
-EXPORT_SYMBOL(destroy_inode);
|
|
|
|
-
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
* These are initializations that only need to be done
|
|
* These are initializations that only need to be done
|