diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-28 10:55:40 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-29 18:44:12 +0300 |
commit | 599d9d4eab7c3d5dc6f1e0f8f052fee9eaa54e50 (patch) | |
tree | 2667748eadefe6bed6c97731cd45230710521622 /arch/um/drivers | |
parent | 3c407dc723bbf914f3744b0c2bb82265b411a50c (diff) | |
download | linux-599d9d4eab7c3d5dc6f1e0f8f052fee9eaa54e50.tar.xz |
ubd: use the default discard granularity
The discard granularity now defaults to a single sector, so don't set
that value explicitly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Richard Weinberger <richard@nod.at>
Link: https://lore.kernel.org/r/20231228075545.362768-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/um/drivers')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 50206feac577..92ee2697ff39 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -798,7 +798,6 @@ static int ubd_open_dev(struct ubd *ubd_dev) ubd_dev->cow.fd = err; } if (ubd_dev->no_trim == 0) { - ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; blk_queue_max_discard_sectors(ubd_dev->queue, UBD_MAX_REQUEST); blk_queue_max_write_zeroes_sectors(ubd_dev->queue, UBD_MAX_REQUEST); } |