]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: zero-fill folios beyond i_valid in ntfs_read_folio()
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 12 Dec 2025 11:38:10 +0000 (14:38 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 29 Dec 2025 13:33:30 +0000 (13:33 +0000)
commit356fa248168be90109b66f32a61b8eaedc98424a
treee3a5f62ab9fca9e905a01f343cc3ba4b432b47f2
parent576248a34b927e93b2fd3fff7df735ba73ad7d01
fs/ntfs3: zero-fill folios beyond i_valid in ntfs_read_folio()

Handle ntfs_read_folio() early when the folio offset is beyond i_valid
by zero-filling the folio and marking it uptodate. This avoids needless
I/O and locking, improves read performance.

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