mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
freevxfs: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -131,21 +131,14 @@ static struct inode *vxfs_alloc_inode(struct super_block *sb)
|
|||||||
return &vi->vfs_inode;
|
return &vi->vfs_inode;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vxfs_i_callback(struct rcu_head *head)
|
static void vxfs_free_inode(struct inode *inode)
|
||||||
{
|
{
|
||||||
struct inode *inode = container_of(head, struct inode, i_rcu);
|
|
||||||
|
|
||||||
kmem_cache_free(vxfs_inode_cachep, VXFS_INO(inode));
|
kmem_cache_free(vxfs_inode_cachep, VXFS_INO(inode));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vxfs_destroy_inode(struct inode *inode)
|
|
||||||
{
|
|
||||||
call_rcu(&inode->i_rcu, vxfs_i_callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct super_operations vxfs_super_ops = {
|
static const struct super_operations vxfs_super_ops = {
|
||||||
.alloc_inode = vxfs_alloc_inode,
|
.alloc_inode = vxfs_alloc_inode,
|
||||||
.destroy_inode = vxfs_destroy_inode,
|
.free_inode = vxfs_free_inode,
|
||||||
.evict_inode = vxfs_evict_inode,
|
.evict_inode = vxfs_evict_inode,
|
||||||
.put_super = vxfs_put_super,
|
.put_super = vxfs_put_super,
|
||||||
.statfs = vxfs_statfs,
|
.statfs = vxfs_statfs,
|
||||||
|
Reference in New Issue
Block a user