Skip to content

Commit 3753039

Browse files
Christoph Hellwigaxboe
authored andcommitted
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: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 7243254 commit 3753039

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/zram/zram_drv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,6 @@ static int zram_add(void)
22272227
ZRAM_LOGICAL_BLOCK_SIZE);
22282228
blk_queue_io_min(zram->disk->queue, PAGE_SIZE);
22292229
blk_queue_io_opt(zram->disk->queue, PAGE_SIZE);
2230-
zram->disk->queue->limits.discard_granularity = PAGE_SIZE;
22312230
blk_queue_max_discard_sectors(zram->disk->queue, UINT_MAX);
22322231

22332232
/*

0 commit comments

Comments
 (0)