Commit 02a77b30 authored by John Garry's avatar John Garry Committed by Greg Kroah-Hartman
Browse files

loop: Use bdev limit helpers for configuring discard



[ Upstream commit 8d3fd059 ]

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

Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241030111900.3981223-1-john.g.garry@oracle.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Stable-dep-of: f5c84eff ("loop: Add sanity check for read/write_iter")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 126be034
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment