]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use bdev_is_zoned in claim_swapfile
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:41 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commit868bca3746b789137a701ae723e2142c18feeb40
treeb21b0b9b95b1a3339d049e70f6f569d7a5581c1b
parentca5619b37fca4df57c461fdfec2ec04b59bbc7e2
mm: use bdev_is_zoned in claim_swapfile

Use the bdev based helper instead of poking into the queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/swapfile.c