mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
nfs{,4}: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d67a398a5f
commit
ca1a199e3b
4 changed files with 5 additions and 11 deletions
|
@ -2055,17 +2055,11 @@ struct inode *nfs_alloc_inode(struct super_block *sb)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(nfs_alloc_inode);
|
||||
|
||||
static void nfs_i_callback(struct rcu_head *head)
|
||||
void nfs_free_inode(struct inode *inode)
|
||||
{
|
||||
struct inode *inode = container_of(head, struct inode, i_rcu);
|
||||
kmem_cache_free(nfs_inode_cachep, NFS_I(inode));
|
||||
}
|
||||
|
||||
void nfs_destroy_inode(struct inode *inode)
|
||||
{
|
||||
call_rcu(&inode->i_rcu, nfs_i_callback);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(nfs_destroy_inode);
|
||||
EXPORT_SYMBOL_GPL(nfs_free_inode);
|
||||
|
||||
static inline void nfs4_init_once(struct nfs_inode *nfsi)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue