[f2fs-dev] [PATCH v5] f2fs: support errors=remount-ro|continue|panic mountoption

2022-11-06 Thread Chao Yu
This patch supports errors=remount-ro|continue|panic mount option. Signed-off-by: Chao Yu Signed-off-by: Yangtao Li Signed-off-by: Jaegeuk Kim --- v5: - skip in gc/discard thread instead of stopping them, leave flush/ckpt thread as running status. Documentation/filesystems/f2fs.rst | 4 + fs

[f2fs-dev] [PATCH] f2fs: speed up f2fs_empty_dir()

2022-11-06 Thread Chao Yu
Wei Chen reports a kernel bug as blew: INFO: task syz-executor.0:29056 blocked for more than 143 seconds. Not tainted 5.15.0-rc5 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:14632 pid:29056 ppid: 6574 flags:0x0004 Call T

[f2fs-dev] [PATCH] f2fs-tools: define HAVE_CLOCK_GETTIME properly

2022-11-06 Thread Juhyung Park
HAVE_CLOCK_GETTIME wasn't defined during autoconf, leading to messages like "Done: 0.00 secs" on Linux distros. Signed-off-by: Juhyung Park --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 91bf7ff8e0f8..3aabb698e0db 100644 --- a/configure

[f2fs-dev] [PATCH] f2fs: fix to avoid accessing uninitialized spinlock

2022-11-06 Thread Chao Yu
syzbot reports a kernel bug: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 assign_lock_key+0x22a/0x240 kernel/locking/lockdep.c:981 register_lock_class+0x287/0x9b0 kernel/locking/lockdep.c:1294 __lock_acquire+0xe4/0x1f60 kernel/locking/lockdep.c:493

[f2fs-dev] [PATCH v6] f2fs: support errors=remount-ro|continue|panic mountoption

2022-11-06 Thread Chao Yu
This patch supports errors=remount-ro|continue|panic mount option. Signed-off-by: Chao Yu Signed-off-by: Yangtao Li Signed-off-by: Jaegeuk Kim --- v6: - rebase the code Documentation/filesystems/f2fs.rst | 4 + fs/f2fs/checkpoint.c | 7 +- fs/f2fs/f2fs.h |

Re: [f2fs-dev] [PATCH] f2fs: separate IPU policy for fdatasync from F2FS_IPU_FSYNC

2022-11-06 Thread Chao Yu
On 2022/11/2 20:25, qixiaoyu wrote: Hi Chao, fdatasync do in-place-update to avoid additional node writes, but currently it only do that with F2FS_IPU_FSYNC as: f2fs_do_sync_file: if (datasync || get_dirty_pages(inode) <= SM_I(sbi)->min_fsync_blocks) set_inode_flag(inode

Re: [f2fs-dev] [PATCH] f2fs: fix atgc bug on issue in 32bits platform

2022-11-06 Thread Chao Yu
On 2022/11/4 15:40, zhiguo.niu wrote: From: Zhiguo Niu There is bug on issue after atgc feature is enabled in 32bits platform as the following log: F2FS-fs (dm-x): inconsistent rbtree, cur(3470333575168) next(3320009719808) [ cut here ] kernel BUG at fs/f2fs/gc.c:602! I

[f2fs-dev] [Bug 216669] New: f2fs inconsistent node block when executing f2fs_fill_super

2022-11-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216669 Bug ID: 216669 Summary: f2fs inconsistent node block when executing f2fs_fill_super Product: File System Version: 2.5 Kernel Version: 5.10 Hardware: ARM