OSDN Git Service

bcache: use a separate data structure for the on-disk super block
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jan 2020 17:01:27 +0000 (01:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 18:40:00 +0000 (11:40 -0700)
commita702a692cd7559053ea573f4e2c84828f0e62824
tree8a50b865f2ebfc18ce83e99ba217195dd591ceb7
parente8547d42095e58bee658f00fef8e33d2a185c927
bcache: use a separate data structure for the on-disk super block

Split out an on-disk version struct cache_sb with the proper endianness
annotations.  This fixes a fair chunk of sparse warnings, but there are
some left due to the way the checksum is defined.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c
include/uapi/linux/bcache.h