提交 8c52ab42 编写于 作者: A Andreas Gruenbacher 提交者: Linus Torvalds

[PATCH] mbcache: Remove unused mb_cache_shrink parameter

The cache parameter to mb_cache_shrink isn't used.  We may as well remove
it.
Signed-off-by: NAndreas Gruenbacher <agruen@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 3dcce8e2
......@@ -823,7 +823,7 @@ ext2_xattr_delete_inode(struct inode *inode)
void
ext2_xattr_put_super(struct super_block *sb)
{
mb_cache_shrink(ext2_xattr_cache, sb->s_bdev);
mb_cache_shrink(sb->s_bdev);
}
......
......@@ -1106,7 +1106,7 @@ ext3_xattr_delete_inode(handle_t *handle, struct inode *inode)
void
ext3_xattr_put_super(struct super_block *sb)
{
mb_cache_shrink(ext3_xattr_cache, sb->s_bdev);
mb_cache_shrink(sb->s_bdev);
}
/*
......
......@@ -316,11 +316,10 @@ mb_cache_create(const char *name, struct mb_cache_op *cache_op,
* currently in use cannot be freed, and thus remain in the cache. All others
* are freed.
*
* @cache: which cache to shrink
* @bdev: which device's cache entries to shrink
*/
void
mb_cache_shrink(struct mb_cache *cache, struct block_device *bdev)
mb_cache_shrink(struct block_device *bdev)
{
LIST_HEAD(free_list);
struct list_head *l, *ltmp;
......
......@@ -29,7 +29,7 @@ struct mb_cache_op {
struct mb_cache * mb_cache_create(const char *, struct mb_cache_op *, size_t,
int, int);
void mb_cache_shrink(struct mb_cache *, struct block_device *);
void mb_cache_shrink(struct block_device *);
void mb_cache_destroy(struct mb_cache *);
/* Functions on cache entries */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册