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: NJosé Luis Lara Carrascal <manualinux@yahoo.es> Signed-off-by: NMikulas Patocka <mpatocka@redhat.com> Acked-by: NMatthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: NNamjae Jeon <linkinjeon@kernel.org> Signed-off-by: NKonstantin Komarov <almaz.alexandrovich@paragon-software.com> Cc: stable@vger.kernel.org # v5.18
Showing
想要评论请 注册 或 登录