provide a sane discard_granularity default
- To: Jens Axboe <axboe@kernel.dk>
- Cc: Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Josef Bacik <josef@toxicpanda.com>, Minchan Kim <minchan@kernel.org>, Sergey Senozhatsky <senozhatsky@chromium.org>, Coly Li <colyli@suse.de>, Miquel Raynal <miquel.raynal@bootlin.com>, Vignesh Raghavendra <vigneshr@ti.com>, linux-um@lists.infradead.org, linux-block@vger.kernel.org, nbd@other.debian.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org
- Subject: provide a sane discard_granularity default
- From: Christoph Hellwig <hch@lst.de>
- Date: Thu, 28 Dec 2023 07:55:36 +0000
- Message-id: <[🔎] 20231228075545.362768-1-hch@lst.de>
Hi Jens,
this series defaults the discard_granularity to the sector size as
that is a very logical default for devices that have no further
restrictions. This removes the need for trivial drivers to set
a discard granularity and cleans up the interface.
Diffstat:
arch/um/drivers/ubd_kern.c | 1 -
block/blk-merge.c | 6 +-----
block/blk-settings.c | 5 ++++-
drivers/block/nbd.c | 6 +-----
drivers/block/null_blk/main.c | 1 -
drivers/block/zram/zram_drv.c | 1 -
drivers/md/bcache/super.c | 1 -
drivers/mtd/mtd_blkdevs.c | 4 +---
8 files changed, 7 insertions(+), 18 deletions(-)
Reply to: