Skip to content

Commit 08ab229

Browse files
author
Al Viro
committed
hfsplus: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 6d845e2 commit 08ab229

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

‎fs/hfsplus/super.c‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <linux/nls.h>
1919

2020
static struct inode *hfsplus_alloc_inode(struct super_block *sb);
21-
static void hfsplus_destroy_inode(struct inode *inode);
21+
static void hfsplus_free_inode(struct inode *inode);
2222

2323
#include "hfsplus_fs.h"
2424
#include "xattr.h"
@@ -361,7 +361,7 @@ static int hfsplus_remount(struct super_block *sb, int *flags, char *data)
361361

362362
static const struct super_operations hfsplus_sops = {
363363
.alloc_inode = hfsplus_alloc_inode,
364-
.destroy_inode = hfsplus_destroy_inode,
364+
.free_inode = hfsplus_free_inode,
365365
.write_inode = hfsplus_write_inode,
366366
.evict_inode = hfsplus_evict_inode,
367367
.put_super = hfsplus_put_super,
@@ -628,18 +628,11 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb)
628628
return i ? &i->vfs_inode : NULL;
629629
}
630630

631-
static void hfsplus_i_callback(struct rcu_head *head)
631+
static void hfsplus_free_inode(struct inode *inode)
632632
{
633-
struct inode *inode = container_of(head, struct inode, i_rcu);
634-
635633
kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode));
636634
}
637635

638-
static void hfsplus_destroy_inode(struct inode *inode)
639-
{
640-
call_rcu(&inode->i_rcu, hfsplus_i_callback);
641-
}
642-
643636
#define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info)
644637

645638
static struct dentry *hfsplus_mount(struct file_system_type *fs_type,

0 commit comments

Comments
 (0)