Skip to content
Unverified Commit 724bbe49 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Konstantin Komarov
Browse files

fs/ntfs3: provide block_invalidate_folio to fix memory leak



The ntfs3 filesystem lacks the 'invalidate_folio' method and it causes
memory leak. If you write to the filesystem and then unmount it, the
cached written data are not freed and they are permanently leaked.
Fixes: 7ba13abb ("fs: Turn block_invalidatepage into block_invalidate_folio")

Reported-by: default avatarJosé Luis Lara Carrascal <manualinux@yahoo.es>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Acked-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: stable@vger.kernel.org  # v5.18
parent f26967b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment