block: remove the discard_granularity check in __blkdev_issue_discard
authorChristoph Hellwig <hch@lst.de>
Mon, 6 May 2024 04:20:22 +0000 (06:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 May 2024 13:29:42 +0000 (07:29 -0600)
commit0942592045782e76a9d52c409955c2dc313cbd30
treeedad23808ef13a097abb802fc1ac3c620d9563b7
parentccb326b5f9e623eb7f130fbbf2505ec0e2dcaff9
block: remove the discard_granularity check in __blkdev_issue_discard

We now set a default granularity in the queue limits API, so don't
bother with this extra check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240506042027.2289826-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c