bcache: store a pointer to the on-disk sb in the cache and cached_dev structures
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jan 2020 17:01:33 +0000 (01:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 18:40:01 +0000 (11:40 -0700)
commit475389ae5c08656f8bb5cc3adc88a531c7c4877f
tree3f8ef7aabcdb51494ff6eaba89d997f00950e6fe
parentcfa0c56db9c087227988f6af2c7b9888d24a3b16
bcache: store a pointer to the on-disk sb in the cache and cached_dev structures

This allows to properly build the superblock bio including the offset in
the page using the normal bio helpers.  This fixes writing the superblock
for page sizes larger than 4k where the sb write bio would need an offset
in the bio_vec.

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/bcache.h
drivers/md/bcache/super.c