]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a bdev_stable_writes helper
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:45 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit08bf52d72717e2c7b734d86596e6e184451be73f
treeb4f9198da60eca095cbb05f8fb63ad243efca2ee
parent6e3d05d09ba29934d7d8c6c2285fe08c8652a469
block: add a bdev_stable_writes helper

Add a helper to check the stable writes 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>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-table.c
fs/super.c
include/linux/blkdev.h
mm/swapfile.c