[f2fs-dev] [PATCH v1] f2fs: Fix over-estimating free section during FG GC

2023-05-11 Thread Yonggil Song
There was a bug that finishing FG GC unconditionally because free sections are over-estimated after checkpoint in FG GC. This patch initializes sec_freed by every checkpoint in FG GC. Signed-off-by: Yonggil Song --- fs/f2fs/gc.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletion

[f2fs-dev] Is compression available under direct-io mode?

2023-05-11 Thread Sijie Lan
Hi, guys, When I do some specific test scenarios, I want to do some direct write after data have been compressed in F2FS, but when I track the internal functions, it seems F2FS forces my direct-io request to buffer-io mode. Does it mean we can not do the write direct-io if we applied the compressi

[f2fs-dev] [PATCH] f2fs: add fsnotify_sb_error() in f2fs_save_errors

2023-05-11 Thread Yangtao Li via Linux-f2fs-devel
When an EFSCORRUPTED error occurs in f2fs, report the error to userspace monitoring tools. Signed-off-by: Yangtao Li --- fs/f2fs/super.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 51812f459581..42d5aa504afe 100644 --- a/fs/f2fs/super.c +++ b/fs