]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
bcache: Remove redundant parameter for cache_alloc()
authorYijing Wang <wangyijing@huawei.com>
Mon, 4 Jul 2016 01:23:25 +0000 (09:23 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 5 Jul 2016 17:34:47 +0000 (11:34 -0600)
Cache_sb is not used in cache_alloc, and we have copied
sb info to cache->sb already, remove it.

Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/md/bcache/super.c

index d542438b18df4efe5514516847faebe00863ef13..c3138f6fc78394852238c689451b8ea1a2037c70 100644 (file)
@@ -1806,7 +1806,7 @@ void bch_cache_release(struct kobject *kobj)
        module_put(THIS_MODULE);
 }
 
-static int cache_alloc(struct cache_sb *sb, struct cache *ca)
+static int cache_alloc(struct cache *ca)
 {
        size_t free;
        struct bucket *b;
@@ -1861,7 +1861,7 @@ static int register_cache(struct cache_sb *sb, struct page *sb_page,
        if (blk_queue_discard(bdev_get_queue(ca->bdev)))
                ca->discard = CACHE_DISCARD(&ca->sb);
 
-       ret = cache_alloc(sb, ca);
+       ret = cache_alloc(ca);
        if (ret != 0)
                goto err;