Skip to content

Commit 7243254

Browse files
Christoph Hellwigaxboe
authored andcommitted
null_blk: 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 1e2ab2e commit 7243254

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/null_blk/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,6 @@ static void null_config_discard(struct nullb *nullb)
18801880
return;
18811881
}
18821882

1883-
nullb->q->limits.discard_granularity = nullb->dev->blocksize;
18841883
blk_queue_max_discard_sectors(nullb->q, UINT_MAX >> 9);
18851884
}
18861885

0 commit comments

Comments
 (0)