provide a sane discard_granularity default
Jens Axboe
axboe at kernel.dk
Fri Dec 29 07:44:33 PST 2023
On Thu, 28 Dec 2023 07:55:36 +0000, Christoph Hellwig wrote:
> 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(-)
>
> [...]
Applied, thanks!
[1/9] block: remove two comments in bio_split_discard
commit: 928a5dd3a849dc6d8298835bdcb25c360d41bccb
[2/9] bcache: discard_granularity should not be smaller than a sector
commit: 5e7169e7f7c0989304dbe8467a1d703d614c64db
[3/9] block: default the discard granularity to sector size
commit: 3c407dc723bbf914f3744b0c2bb82265b411a50c
[4/9] ubd: use the default discard granularity
commit: 599d9d4eab7c3d5dc6f1e0f8f052fee9eaa54e50
[5/9] nbd: use the default discard granularity
commit: 1e2ab2e8a98c9e0629b5b8bff8ee6f2cb3e8daac
[6/9] null_blk: use the default discard granularity
commit: 724325477f8a48ce1defc2a49998bbc19fe85c88
[7/9] zram: use the default discard granularity
commit: 3753039def5d0d1c43af847b507ba9b782db183a
[8/9] bcache: use the default discard granularity
commit: 105c1a5f6ccef7f52f9e76664407ef96218272eb
[9/9] mtd_blkdevs: use the default discard granularity
commit: 31e4fac930814f2f92eb6ebac9c4d4e3b09f7aaf
Best regards,
--
Jens Axboe
More information about the linux-mtd
mailing list