xen-blkfront: rely on the default discard granularity
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Feb 2024 12:58:43 +0000 (13:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Feb 2024 16:33:08 +0000 (09:33 -0700)
commit738be136327a56e5a67e1942a2c318fb91914a3f
tree96a50748459c15ad8a40dee4e4d221ebdcde35ef
parent4a718d7dbab873bc24034fc865d3a5442632d1fd
xen-blkfront: rely on the default discard granularity

The block layer now sets the discard granularity to the physical
block size default.  Take advantage of that in xen-blkfront and only
set the discard granularity if explicitly specified.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Link: https://lore.kernel.org/r/20240221125845.3610668-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xen-blkfront.c