]> www.infradead.org Git - users/dwmw2/linux.git/commit
loop: Use bdev limit helpers for configuring discard
authorJohn Garry <john.g.garry@oracle.com>
Wed, 30 Oct 2024 11:19:00 +0000 (11:19 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Oct 2024 13:23:57 +0000 (07:23 -0600)
commit8d3fd059dd289e6c322e5741ad56794bcce699a2
treef3133abdd888bec0f6973674af276668e7e40f7e
parent2f5a65ef30a636d5030917eebd283ac447a212af
loop: Use bdev limit helpers for configuring discard

Instead of directly looking at the request_queue limits, use the bdev
limits helpers, which is preferable.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241030111900.3981223-1-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c