Skip to content

Commit

Permalink
bcache: Remove redundant parameter for cache_alloc()
Browse files Browse the repository at this point in the history
Cache_sb is not used in cache_alloc, and we have copied
sb info to cache->sb already, remove it.

Reviewed-by: Coly Li <[email protected]>
Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
YijingWang authored and axboe committed Jul 5, 2016
1 parent 3a85a5d commit c50d4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/bcache/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit c50d4d5

Please sign in to comment.