diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-28 10:55:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-29 18:44:12 +0300 |
commit | 724325477f8a48ce1defc2a49998bbc19fe85c88 (patch) | |
tree | a26840ce2fbd68533d4038463269c139b60f5334 | |
parent | 1e2ab2e8a98c9e0629b5b8bff8ee6f2cb3e8daac (diff) | |
download | linux-724325477f8a48ce1defc2a49998bbc19fe85c88.tar.xz |
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 <hch@lst.de>
Link: https://lore.kernel.org/r/20231228075545.362768-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/block/null_blk/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c index 13ed446b5e19..9f7695f00c2d 100644 --- a/drivers/block/null_blk/main.c +++ b/drivers/block/null_blk/main.c @@ -1880,7 +1880,6 @@ static void null_config_discard(struct nullb *nullb) return; } - nullb->q->limits.discard_granularity = nullb->dev->blocksize; blk_queue_max_discard_sectors(nullb->q, UINT_MAX >> 9); } |