]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
exfat: reduce unnecessary writes during mmap write
authorYuling Dong <yuling-dong@qq.com>
Thu, 15 Jan 2026 05:05:23 +0000 (13:05 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Thu, 12 Feb 2026 12:21:47 +0000 (21:21 +0900)
commit0914882bdda645e10cf536b474631e1a023b67c0
tree382924440cb427817004f70b26af83fb154874ba
parent8ffe56b104c5a9cdb88e3c7b2d84fa70d8866e64
exfat: reduce unnecessary writes during mmap write

During mmap write, exfat_page_mkwrite() currently extends
valid_size to the end of the VMA range. For a large mapping,
this can push valid_size far beyond the page that actually
triggered the fault, resulting in unnecessary writes.

valid_size only needs to extend to the end of the page
being written.

Signed-off-by: Yuling Dong <yuling-dong@qq.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/file.c