Commit 72432547 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231228075545.362768-7-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1e2ab2e8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
}