Merge branch 'work.icache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs inode freeing updates from Al Viro: "Introduction of separate method for RCU-delayed part of ->destroy_inode() (if any). Pretty much as posted, except that destroy_inode() stashes ->free_inode into the victim (anon-unioned with ->i_fops) before scheduling i_callback() and the last two patches (sockfs conversion and folding struct socket_wq into struct socket) are excluded - that pair should go through netdev once davem reopens his tree" * 'work.icache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (58 commits) orangefs: make use of ->free_inode() shmem: make use of ->free_inode() hugetlb: make use of ->free_inode() overlayfs: make use of ->free_inode() jfs: switch to ->free_inode() fuse: switch to ->free_inode() ext4: make use of ->free_inode() ecryptfs: make use of ->free_inode() ceph: use ->free_inode() btrfs: use ->free_inode() afs: switch to use of ->free_inode() dax: make use of ->free_inode() ntfs: switch to ->free_inode() securityfs: switch to ->free_inode() apparmor: switch to ->free_inode() rpcpipe: switch to ->free_inode() bpf: switch to ->free_inode() mqueue: switch to ->free_inode() ufs: switch to ->free_inode() coda: switch to ->free_inode() ...
This commit is contained in:
@@ -202,18 +202,11 @@ rpc_alloc_inode(struct super_block *sb)
|
||||
}
|
||||
|
||||
static void
|
||||
rpc_i_callback(struct rcu_head *head)
|
||||
rpc_free_inode(struct inode *inode)
|
||||
{
|
||||
struct inode *inode = container_of(head, struct inode, i_rcu);
|
||||
kmem_cache_free(rpc_inode_cachep, RPC_I(inode));
|
||||
}
|
||||
|
||||
static void
|
||||
rpc_destroy_inode(struct inode *inode)
|
||||
{
|
||||
call_rcu(&inode->i_rcu, rpc_i_callback);
|
||||
}
|
||||
|
||||
static int
|
||||
rpc_pipe_open(struct inode *inode, struct file *filp)
|
||||
{
|
||||
@@ -1123,7 +1116,7 @@ void rpc_remove_cache_dir(struct dentry *dentry)
|
||||
*/
|
||||
static const struct super_operations s_ops = {
|
||||
.alloc_inode = rpc_alloc_inode,
|
||||
.destroy_inode = rpc_destroy_inode,
|
||||
.free_inode = rpc_free_inode,
|
||||
.statfs = simple_statfs,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user