]> git.ipfire.org Git - thirdparty/linux.git/commit
writeback: allow the file system to override MIN_WRITEBACK_PAGES
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Oct 2025 03:45:48 +0000 (05:45 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 14:54:31 +0000 (15:54 +0100)
commit90db4d4441f58d433ecf74f7e3bd17e0a553c20c
tree8e436c715c54452cb72e8daee40fdef8887ad46a
parent151d0922bf638a4e4235758d04b31f48bfcbb798
writeback: allow the file system to override MIN_WRITEBACK_PAGES

The relatively low minimal writeback size of 4MiB 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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20251017034611.651385-3-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fs-writeback.c
fs/super.c
include/linux/fs.h
include/linux/writeback.h