Re: [f2fs-dev] [PATCH 1/2] f2fs: fix remove page failed in invalidate compress pages

2021-11-24 Thread 常凤楠
Do we have some limit that we must use exported symbol to make f2fs must can load as a module? If no, maybe we can just use truncate_inode_page to replace generic_error_remove_page ? > -Original Message- > From: 常凤楠 > Sent: Wednesday, November 24, 2021 4:39 PM > To: jaeg...@kernel.org; c

[f2fs-dev] [PATCH 1/2] f2fs: fix remove page failed in invalidate compress pages

2021-11-24 Thread Fengnan Chang
Since compress inode not a regular file, generic_error_remove_page in f2fs_invalidate_compress_pages will always be failed, set compress inode as a regular file to fix it. Signed-off-by: Fengnan Chang --- fs/f2fs/inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/inode.c b/fs/f2

[f2fs-dev] [PATCH 2/2] f2fs: support POSIX_FADV_DONTNEED drop compressed page cache

2021-11-24 Thread Fengnan Chang
Previously, compressed page cache drop when clean page cache, but POSIX_FADV_DONTNEED can't clean compressed page cache, this commit try to support it. Signed-off-by: Fengnan Chang --- fs/f2fs/compress.c | 10 -- fs/f2fs/f2fs.h | 7 --- 2 files changed, 12 insertions(+), 5 delet