Home
last modified time | relevance | path

Searched hist:"198 efa35" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/md/bcache/
H A Dsuper.c198efa35 Sat Jul 25 07:00:28 CDT 2020 Coly Li <colyli@suse.de> 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>
198efa35 Sat Jul 25 07:00:28 CDT 2020 Coly Li <colyli@suse.de> 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>