diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-15 06:52:43 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-18 03:49:59 +0200 |
commit | 08e688fdb8f7e862092ae64cee20bc8b463d1046 (patch) | |
tree | 8c85516d2478db6988a5d73b1032622a2897a705 /block/blk-ioc.c | |
parent | block: add a bdev_nonrot helper (diff) | |
download | linux-08e688fdb8f7e862092ae64cee20bc8b463d1046.tar.xz linux-08e688fdb8f7e862092ae64cee20bc8b463d1046.zip |
block: add a bdev_write_cache helper
Add a helper to check the write cache flag based on the block_device
instead of having to poke into the block layer internal request_queue.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: David Sterba <dsterba@suse.com> [btrfs]
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-ioc.c')
0 files changed, 0 insertions, 0 deletions