| From: |
| Christoph Hellwig <hch-AT-lst.de> |
| To: |
| Christian Brauner <brauner-AT-kernel.org>, Jan Kara <jack-AT-suse.cz>, Carlos Maiolino <cem-AT-kernel.org> |
| Subject: |
| allow file systems to increase the minimum writeback chunk size |
| Date: |
| Wed, 15 Oct 2025 15:27:13 +0900 |
| Message-ID: |
| <20251015062728.60104-1-hch@lst.de> |
| Cc: |
| Andrew Morton <akpm-AT-linux-foundation.org>, willy-AT-infradead.org, dlemoal-AT-kernel.org, hans.holmberg-AT-wdc.com, linux-mm-AT-kvack.org, linux-fsdevel-AT-vger.kernel.org, linux-xfs-AT-vger.kernel.org |
| Archive-link: |
| Article |
Hi all,
The relatively low minimal writeback size of 4MiB leads means that
written back inodes on rotational media are switched a lot. Besides
introducing additional seeks, this also can lead to extreme file
fragmentation on zoned devices when a lot of files are cached relative
to the available writeback bandwidth.
Add a superblock field that allows the file system to override the
default size, and set it to the zone size for zoned XFS.
Diffstat:
b/fs/fs-writeback.c | 14 +++++---------
b/fs/super.c | 1 +
b/fs/xfs/xfs_zone_alloc.c | 7 +++++--
b/include/linux/fs.h | 1 +
b/include/linux/writeback.h | 5 +++++
fs/fs-writeback.c | 14 +++++---------
6 files changed, 22 insertions(+), 20 deletions(-)