]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bcache: remove can_attach_cache()
authorColy Li <colyli@suse.de>
Thu, 1 Oct 2020 06:50:54 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Oct 2020 20:25:30 +0000 (14:25 -0600)
commitebaa1ac12b0c97337a5bad1d57334056791aaa88
tree70c47edf45ae51c7f65172c97b7985e0b38975d3
parent08a17828812adbe965b7af9a0e3e6a6024460cc8
bcache: remove can_attach_cache()

After removing the embedded struct cache_sb from struct cache_set, cache
set will directly reference the in-memory super block of struct cache.
It is unnecessary to compare block_size, bucket_size and nr_in_set from
the identical in-memory super block in can_attach_cache().

This is a preparation patch for latter removing cache_set->sb from
struct cache_set.

Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c