Skip to content

Commit

Permalink
romfs: convert to ->free_inode()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 2, 2019
1 parent a5a8cbe commit bcb8d71
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions fs/romfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,18 +381,11 @@ static struct inode *romfs_alloc_inode(struct super_block *sb)
/*
* return a spent inode to the slab cache
*/
static void romfs_i_callback(struct rcu_head *head)
static void romfs_free_inode(struct inode *inode)
{
struct inode *inode = container_of(head, struct inode, i_rcu);

kmem_cache_free(romfs_inode_cachep, ROMFS_I(inode));
}

static void romfs_destroy_inode(struct inode *inode)
{
call_rcu(&inode->i_rcu, romfs_i_callback);
}

/*
* get filesystem statistics
*/
Expand Down Expand Up @@ -439,7 +432,7 @@ static int romfs_remount(struct super_block *sb, int *flags, char *data)

static const struct super_operations romfs_super_ops = {
.alloc_inode = romfs_alloc_inode,
.destroy_inode = romfs_destroy_inode,
.free_inode = romfs_free_inode,
.statfs = romfs_statfs,
.remount_fs = romfs_remount,
};
Expand Down

0 comments on commit bcb8d71

Please sign in to comment.