Skip to content

Commit 8d8fc9c

Browse files
author
Al Viro
committed
bfs: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 49f82a8 commit 8d8fc9c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎fs/bfs/inode.c‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,11 @@ static struct inode *bfs_alloc_inode(struct super_block *sb)
245245
return &bi->vfs_inode;
246246
}
247247

248-
static void bfs_i_callback(struct rcu_head *head)
248+
static void bfs_free_inode(struct inode *inode)
249249
{
250-
struct inode *inode = container_of(head, struct inode, i_rcu);
251250
kmem_cache_free(bfs_inode_cachep, BFS_I(inode));
252251
}
253252

254-
static void bfs_destroy_inode(struct inode *inode)
255-
{
256-
call_rcu(&inode->i_rcu, bfs_i_callback);
257-
}
258-
259253
static void init_once(void *foo)
260254
{
261255
struct bfs_inode_info *bi = foo;
@@ -287,7 +281,7 @@ static void destroy_inodecache(void)
287281

288282
static const struct super_operations bfs_sops = {
289283
.alloc_inode = bfs_alloc_inode,
290-
.destroy_inode = bfs_destroy_inode,
284+
.free_inode = bfs_free_inode,
291285
.write_inode = bfs_write_inode,
292286
.evict_inode = bfs_evict_inode,
293287
.put_super = bfs_put_super,

0 commit comments

Comments
 (0)