Skip to content

Commit

Permalink
openpromfs: switch to ->free_inode()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 2, 2019
1 parent e91b919 commit 363db95
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions fs/openpromfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,17 +336,11 @@ static struct inode *openprom_alloc_inode(struct super_block *sb)
return &oi->vfs_inode;
}

static void openprom_i_callback(struct rcu_head *head)
static void openprom_free_inode(struct inode *inode)
{
struct inode *inode = container_of(head, struct inode, i_rcu);
kmem_cache_free(op_inode_cachep, OP_I(inode));
}

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

static struct inode *openprom_iget(struct super_block *sb, ino_t ino)
{
struct inode *inode;
Expand Down Expand Up @@ -375,7 +369,7 @@ static int openprom_remount(struct super_block *sb, int *flags, char *data)

static const struct super_operations openprom_sops = {
.alloc_inode = openprom_alloc_inode,
.destroy_inode = openprom_destroy_inode,
.free_inode = openprom_free_inode,
.statfs = simple_statfs,
.remount_fs = openprom_remount,
};
Expand Down

0 comments on commit 363db95

Please sign in to comment.