]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: use read_cache_page_gfp to read the superblock
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jan 2020 17:01:34 +0000 (01:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 18:40:01 +0000 (11:40 -0700)
commit75ebcfd25bf369bff941e2c194d4d6d94a1635f5
tree2662f6f43b7ee040d48c2e9a049b8ab821ebae9b
parent995d1d18919ec2c134750f2e5ecbe02dbef1632a
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>
drivers/md/bcache/super.c
include/uapi/linux/bcache.h