xen-blkfront: set max_discard/secure erase limits to UINT_MAX
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Feb 2024 12:58:42 +0000 (13:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Feb 2024 16:33:08 +0000 (09:33 -0700)
commit4a718d7dbab873bc24034fc865d3a5442632d1fd
tree83fdbc8b0ebbaa02c7890c5e154d39b940c4940c
parent82c6515d8a970f471eeb8a5ceeaa04c3e5e1b45c
xen-blkfront: set max_discard/secure erase limits to UINT_MAX

Currently xen-blkfront set the max discard limit to the capacity of
the device, which is suboptimal when the capacity changes.  Just set
it to UINT_MAX, which has the same effect and is simpler.

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-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xen-blkfront.c