]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: only use bucket_bytes() on struct cache
authorColy Li <colyli@suse.de>
Thu, 1 Oct 2020 06:50:52 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Oct 2020 20:25:30 +0000 (14:25 -0600)
commit0c2af2db628a2c5e44a0ded818bce9e84741df49
tree7b334df7549f460df287c31504805e74b5b87ab1
parent2421cb69f86e79605885c7ac964c6fbb93258da0
bcache: only use bucket_bytes() on struct cache

Because struct cache_set and struct cache both have struct cache_sb,
macro bucket_bytes() currently are used on both of them. When removing
the embedded struct cache_sb from struct cache_set, this macro won't be
used on struct cache_set anymore.

This patch unifies all bucket_bytes() usage only on struct cache, this is
one of the preparation to remove the embedded struct cache_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/bcache.h
drivers/md/bcache/sysfs.c