]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: struct cache_sb is only for in-memory super block now
authorColy Li <colyli@suse.de>
Sat, 25 Jul 2020 12:00:29 +0000 (20:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 25 Jul 2020 13:38:20 +0000 (07:38 -0600)
commit37e3ac341b6ff6e1fc0c9047dd5236977c216c1f
tree8eb225b95c5e52f4de28dacf2d70bef594b8a90b
parent7a0168fb43b2a53d990c06d4c86cff82ef5bbf98
bcache: struct cache_sb is only for in-memory super block now

We have struct cache_sb_disk for on-disk super block already, it is
unnecessary to keep the in-memory super block format exactly mapping
to the on-disk struct layout.

This patch adds code comments to notice that struct cache_sb is not
exactly mapping to cache_sb_disk, and removes the useless member csum
and pad[5].

Although struct cache_sb does not belong to uapi, but there are still
some on-disk format related macros reference it and it is unncessary to
get rid of such dependency now. So struct cache_sb will continue to stay
in include/uapi/linux/bache.h for now.

Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/bcache.h