]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: add read_super_common() to read major part of super block
authorColy Li <colyli@suse.de>
Sat, 25 Jul 2020 12:00:23 +0000 (20:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 25 Jul 2020 13:38:20 +0000 (07:38 -0600)
commit827c9f299f7841631136512d11074eb9053b94ae
tree3230a9f33bdb304b43d0a6bba64b48260171e311
parenta41f85d503fdab2f9a871c0e0a6aff3c34d7e660
bcache: add read_super_common() to read major part of super block

Later patches will introduce feature set bits to on-disk super block and
increase super block version. Current code in read_super() which reads
common part of super block for version BCACHE_SB_VERSION_CDEV and version
BCACHE_SB_VERSION_CDEV_WITH_UUID will be shared with the new version.

Therefore this patch moves the reusable part into read_super_common(),
this preparation patch will make later patches more simplier and only
focus on new feature set bits.

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