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

Add a helper to check the nonrot 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-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
13 files changed:
block/ioctl.c
drivers/block/loop.c
drivers/md/dm-table.c
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
fs/btrfs/volumes.c
fs/ext4/mballoc.c
include/linux/blkdev.h
mm/swapfile.c