]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: fold file size handling into ntfs_set_size()
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 22 May 2026 13:11:25 +0000 (15:11 +0200)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 2 Jun 2026 15:02:34 +0000 (17:02 +0200)
commitecbb433f9a8e3297f298226c15fada69b3748d3e
tree14b515d906e1968a32f21fbe260ca051101eb5b2
parent9245b4adb1242589f9ffdd08cf6e529f46b2de7a
fs/ntfs3: fold file size handling into ntfs_set_size()

Remove the separate ntfs_extend() and ntfs_truncate() helpers and route
file size changes through ntfs_set_size().

This consolidates ntfs3 size updates in one place and lets the write,
fallocate, and setattr paths share the same logic for updating i_size,
valid data length, and preallocated extents.

This patch fixes a few issues found during internal tests.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/file.c
fs/ntfs3/inode.c