befs: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Родитель
312a679183
Коммит
49f82a808b
|
@ -44,7 +44,7 @@ static struct dentry *befs_lookup(struct inode *, struct dentry *,
|
||||||
unsigned int);
|
unsigned int);
|
||||||
static struct inode *befs_iget(struct super_block *, unsigned long);
|
static struct inode *befs_iget(struct super_block *, unsigned long);
|
||||||
static struct inode *befs_alloc_inode(struct super_block *sb);
|
static struct inode *befs_alloc_inode(struct super_block *sb);
|
||||||
static void befs_destroy_inode(struct inode *inode);
|
static void befs_free_inode(struct inode *inode);
|
||||||
static void befs_destroy_inodecache(void);
|
static void befs_destroy_inodecache(void);
|
||||||
static int befs_symlink_readpage(struct file *, struct page *);
|
static int befs_symlink_readpage(struct file *, struct page *);
|
||||||
static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
|
static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
|
||||||
|
@ -64,7 +64,7 @@ static struct dentry *befs_get_parent(struct dentry *child);
|
||||||
|
|
||||||
static const struct super_operations befs_sops = {
|
static const struct super_operations befs_sops = {
|
||||||
.alloc_inode = befs_alloc_inode, /* allocate a new inode */
|
.alloc_inode = befs_alloc_inode, /* allocate a new inode */
|
||||||
.destroy_inode = befs_destroy_inode, /* deallocate an inode */
|
.free_inode = befs_free_inode, /* deallocate an inode */
|
||||||
.put_super = befs_put_super, /* uninit super */
|
.put_super = befs_put_super, /* uninit super */
|
||||||
.statfs = befs_statfs, /* statfs */
|
.statfs = befs_statfs, /* statfs */
|
||||||
.remount_fs = befs_remount,
|
.remount_fs = befs_remount,
|
||||||
|
@ -281,17 +281,11 @@ befs_alloc_inode(struct super_block *sb)
|
||||||
return &bi->vfs_inode;
|
return &bi->vfs_inode;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void befs_i_callback(struct rcu_head *head)
|
static void befs_free_inode(struct inode *inode)
|
||||||
{
|
{
|
||||||
struct inode *inode = container_of(head, struct inode, i_rcu);
|
|
||||||
kmem_cache_free(befs_inode_cachep, BEFS_I(inode));
|
kmem_cache_free(befs_inode_cachep, BEFS_I(inode));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void befs_destroy_inode(struct inode *inode)
|
|
||||||
{
|
|
||||||
call_rcu(&inode->i_rcu, befs_i_callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void init_once(void *foo)
|
static void init_once(void *foo)
|
||||||
{
|
{
|
||||||
struct befs_inode_info *bi = (struct befs_inode_info *) foo;
|
struct befs_inode_info *bi = (struct befs_inode_info *) foo;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче