浏览代码

[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: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andreas Gruenbacher 20 年之前
父节点
当前提交
8c52ab42c1
共有 4 个文件被更改,包括 4 次插入5 次删除
  1. 1 1
      fs/ext2/xattr.c
  2. 1 1
      fs/ext3/xattr.c
  3. 1 2
      fs/mbcache.c
  4. 1 1
      include/linux/mbcache.h

+ 1 - 1
fs/ext2/xattr.c

@@ -823,7 +823,7 @@ cleanup:
 void
 void
 ext2_xattr_put_super(struct super_block *sb)
 ext2_xattr_put_super(struct super_block *sb)
 {
 {
-	mb_cache_shrink(ext2_xattr_cache, sb->s_bdev);
+	mb_cache_shrink(sb->s_bdev);
 }
 }
 
 
 
 

+ 1 - 1
fs/ext3/xattr.c

@@ -1106,7 +1106,7 @@ cleanup:
 void
 void
 ext3_xattr_put_super(struct super_block *sb)
 ext3_xattr_put_super(struct super_block *sb)
 {
 {
-	mb_cache_shrink(ext3_xattr_cache, sb->s_bdev);
+	mb_cache_shrink(sb->s_bdev);
 }
 }
 
 
 /*
 /*

+ 1 - 2
fs/mbcache.c

@@ -316,11 +316,10 @@ fail:
  * currently in use cannot be freed, and thus remain in the cache. All others
  * currently in use cannot be freed, and thus remain in the cache. All others
  * are freed.
  * are freed.
  *
  *
- * @cache: which cache to shrink
  * @bdev: which device's cache entries to shrink
  * @bdev: which device's cache entries to shrink
  */
  */
 void
 void
-mb_cache_shrink(struct mb_cache *cache, struct block_device *bdev)
+mb_cache_shrink(struct block_device *bdev)
 {
 {
 	LIST_HEAD(free_list);
 	LIST_HEAD(free_list);
 	struct list_head *l, *ltmp;
 	struct list_head *l, *ltmp;

+ 1 - 1
include/linux/mbcache.h

@@ -29,7 +29,7 @@ struct mb_cache_op {
 
 
 struct mb_cache * mb_cache_create(const char *, struct mb_cache_op *, size_t,
 struct mb_cache * mb_cache_create(const char *, struct mb_cache_op *, size_t,
 				  int, int);
 				  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 *);
 void mb_cache_destroy(struct mb_cache *);
 
 
 /* Functions on cache entries */
 /* Functions on cache entries */