Commit 3753039d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

zram: use the default discard granularity

The discard granularity now defaults to a single sector, so don't set
that value explicitly.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231228075545.362768-8-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 72432547
...@@ -2227,7 +2227,6 @@ static int zram_add(void) ...@@ -2227,7 +2227,6 @@ static int zram_add(void)
ZRAM_LOGICAL_BLOCK_SIZE); ZRAM_LOGICAL_BLOCK_SIZE);
blk_queue_io_min(zram->disk->queue, PAGE_SIZE); blk_queue_io_min(zram->disk->queue, PAGE_SIZE);
blk_queue_io_opt(zram->disk->queue, PAGE_SIZE); blk_queue_io_opt(zram->disk->queue, PAGE_SIZE);
zram->disk->queue->limits.discard_granularity = PAGE_SIZE;
blk_queue_max_discard_sectors(zram->disk->queue, UINT_MAX); blk_queue_max_discard_sectors(zram->disk->queue, UINT_MAX);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment