]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: move bucket related code into read_super_common()
authorColy Li <colyli@suse.de>
Sat, 25 Jul 2020 12:00:28 +0000 (20:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 25 Jul 2020 13:38:20 +0000 (07:38 -0600)
commit7a0168fb43b2a53d990c06d4c86cff82ef5bbf98
treed44ee8f5d2c28bab21b2413c60f3af4150c10521
parent247e89860e34998f7fcea381b9aa4036726ff385
bcache: move bucket related code into read_super_common()

Setting sb->first_bucket and checking sb->keys indeed are only for cache
device, it does not make sense to do them in read_super() for backing
device too.

This patch moves the related code piece into read_super_common()
explicitly for cache device and avoid the confusion.

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