diff options
author | Christoph Hellwig <hch@lst.de> | 2020-01-23 20:01:33 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-23 21:40:01 +0300 |
commit | 475389ae5c08656f8bb5cc3adc88a531c7c4877f (patch) | |
tree | 3f8ef7aabcdb51494ff6eaba89d997f00950e6fe /drivers/md/bcache/bcache.h | |
parent | cfa0c56db9c087227988f6af2c7b9888d24a3b16 (diff) | |
download | linux-475389ae5c08656f8bb5cc3adc88a531c7c4877f.tar.xz |
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>
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r-- | drivers/md/bcache/bcache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 9198c1b480d9..adf26a21fcd1 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -301,6 +301,7 @@ struct cached_dev { struct block_device *bdev; struct cache_sb sb; + struct cache_sb_disk *sb_disk; struct bio sb_bio; struct bio_vec sb_bv[1]; struct closure sb_write; @@ -403,6 +404,7 @@ enum alloc_reserve { struct cache { struct cache_set *set; struct cache_sb sb; + struct cache_sb_disk *sb_disk; struct bio sb_bio; struct bio_vec sb_bv[1]; |