]> git.itanic.dy.fi Git - linux-stable/commit
nbd: use the default discard granularity
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Dec 2023 07:55:41 +0000 (07:55 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Dec 2023 15:44:12 +0000 (08:44 -0700)
commit1e2ab2e8a98c9e0629b5b8bff8ee6f2cb3e8daac
tree658236343f46eeffb00d06dc300a5ad040e98d01
parent599d9d4eab7c3d5dc6f1e0f8f052fee9eaa54e50
nbd: use the default discard granularity

The discard granularity now defaults to a single sector, so don't set
that value explicitly.  Also don't bother clearing it as a discard
granularity without discard_sectors doesn't mean anything.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231228075545.362768-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c