commit | 6321bef028de43724c47cfa7f9dee69ecb783796 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Fri Jan 24 01:01:34 2020 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Jan 23 11:40:01 2020 -0700 |
tree | 2662f6f43b7ee040d48c2e9a049b8ab821ebae9b | |
parent | 475389ae5c08656f8bb5cc3adc88a531c7c4877f [diff] |
bcache: use read_cache_page_gfp to read the superblock Avoid a pointless dependency on buffer heads in bcache by simply open coding reading a single page. Also add a SB_OFFSET define for the byte offset of the superblock instead of using magic numbers. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>