Commit 49d8530d authored by John Garry's avatar John Garry Committed by Bart Van Assche
Browse files

UPSTREAM: loop: Simplify discard granularity calc



A bdev discard granularity is always at least SECTOR_SIZE, so don't check
for a zero value.

Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Change-Id: Ia2cc07d3e7af37bce2b0ebd2aa576f72b359eacf
Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241101092215.422428-1-john.g.garry@oracle.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit d47de6ac)
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent f1aac3cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment