提交 0f3f63a4 编写于 作者: A Al Viro

spufs conversion to ->evict_inode()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 58e8268c
...@@ -143,15 +143,14 @@ spufs_new_file(struct super_block *sb, struct dentry *dentry, ...@@ -143,15 +143,14 @@ spufs_new_file(struct super_block *sb, struct dentry *dentry,
} }
static void static void
spufs_delete_inode(struct inode *inode) spufs_evict_inode(struct inode *inode)
{ {
struct spufs_inode_info *ei = SPUFS_I(inode); struct spufs_inode_info *ei = SPUFS_I(inode);
end_writeback(inode);
if (ei->i_ctx) if (ei->i_ctx)
put_spu_context(ei->i_ctx); put_spu_context(ei->i_ctx);
if (ei->i_gang) if (ei->i_gang)
put_spu_gang(ei->i_gang); put_spu_gang(ei->i_gang);
clear_inode(inode);
} }
static void spufs_prune_dir(struct dentry *dir) static void spufs_prune_dir(struct dentry *dir)
...@@ -779,8 +778,7 @@ spufs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -779,8 +778,7 @@ spufs_fill_super(struct super_block *sb, void *data, int silent)
.alloc_inode = spufs_alloc_inode, .alloc_inode = spufs_alloc_inode,
.destroy_inode = spufs_destroy_inode, .destroy_inode = spufs_destroy_inode,
.statfs = simple_statfs, .statfs = simple_statfs,
.delete_inode = spufs_delete_inode, .evict_inode = spufs_evict_inode,
.drop_inode = generic_delete_inode,
.show_options = generic_show_options, .show_options = generic_show_options,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册