]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: make regular file's buffered write path support large folios
authorZhang Yi <yi.zhang@huawei.com>
Mon, 12 May 2025 06:33:13 +0000 (14:33 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 May 2025 14:31:12 +0000 (10:31 -0400)
commit16705e52e6291c6ab4249aaf1cdf0b8e88afe775
tree6518b77decfc2c5fc84078d5c5f6655023bbf496
parentfdbd0df9d4a36c9091d4f7e8cdfbe76c94aab0ab
ext4: make regular file's buffered write path support large folios

The current buffered write path in ext4 can only allocate and handle
folios of PAGE_SIZE size. To support larger folios, modify
ext4_da_write_begin() and ext4_write_begin() to allocate higher-order
folios, and trim the write length if it exceeds the folio size.
Additionally, in ext4_da_do_write_end(), use offset_in_folio() instead
of PAGE_SIZE.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250512063319.3539411-3-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c