Skip to content

Commit 599d9d4

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent 3c407dc commit 599d9d4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/um/drivers/ubd_kern.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,6 @@ static int ubd_open_dev(struct ubd *ubd_dev)
798798
ubd_dev->cow.fd = err;
799799
}
800800
if (ubd_dev->no_trim == 0) {
801-
ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE;
802801
blk_queue_max_discard_sectors(ubd_dev->queue, UBD_MAX_REQUEST);
803802
blk_queue_max_write_zeroes_sectors(ubd_dev->queue, UBD_MAX_REQUEST);
804803
}

0 commit comments

Comments
 (0)