[f2fs-dev] [PATCH] f2fs: fix inconsistent dirty state of atomic file

2025-01-22 Thread Jianan Huang via Linux-f2fs-devel
When testing the atomic write fix patches, the f2fs_bug_on was triggered as below: [ cut here ] kernel BUG at fs/f2fs/inode.c:935! Oops: invalid opcode: [#1] PREEMPT SMP PTI CPU: 3 UID: 0 PID: 257 Comm: bash Not tainted 6.13.0-rc1-00033-gc283a70d3497 #5 RIP: 0010:f2fs_

[f2fs-dev] [PATCH v2] f2fs: fix inconsistent dirty state of atomic file

2025-01-23 Thread Jianan Huang via Linux-f2fs-devel
When testing the atomic write fix patches, the f2fs_bug_on was triggered as below: [ cut here ] kernel BUG at fs/f2fs/inode.c:935! Oops: invalid opcode: [#1] PREEMPT SMP PTI CPU: 3 UID: 0 PID: 257 Comm: bash Not tainted 6.13.0-rc1-00033-gc283a70d3497 #5 RIP: 0010:f2fs_

[f2fs-dev] [PATCH v3] f2fs: fix inconsistent dirty state of atomic file

2025-01-23 Thread Jianan Huang via Linux-f2fs-devel
When testing the atomic write fix patches, the f2fs_bug_on was triggered as below: [ cut here ] kernel BUG at fs/f2fs/inode.c:935! Oops: invalid opcode: [#1] PREEMPT SMP PTI CPU: 3 UID: 0 PID: 257 Comm: bash Not tainted 6.13.0-rc1-00033-gc283a70d3497 #5 RIP: 0010:f2fs_

[f2fs-dev] [PATCH] f2fs_io: print errno for flag operations

2025-05-11 Thread Jianan Huang via Linux-f2fs-devel
Signed-off-by: Jianan Huang --- tools/f2fs_io/f2fs_io.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index 292dcb3..6531b55 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -258,6 +258,8 @@ static void do_getflags

[f2fs-dev] [PATCH 1/2] f2fs-tools: delete only if the libf2fs_format.so* exists

2025-05-08 Thread Jianan Huang via Linux-f2fs-devel
Otherwise we will get the following error when executing make uninstall: make uninstall-hook make[2]: Entering directory '/home/huangjianan/code/f2fs-tools/mkfs' rm /usr/local/lib/libf2fs_format.so* rm: cannot remove '/usr/local/lib/libf2fs_format.so*': No such file or directory make[2]: *** [Mak

[f2fs-dev] [PATCH 2/2] f2fs-tools: clean up dump.f2fs etc. when uninstall

2025-05-08 Thread Jianan Huang via Linux-f2fs-devel
Otherwise, some lonely soft links will be left in /usr/local/bin. Signed-off-by: Jianan Huang --- fsck/Makefile.am | 8 1 file changed, 8 insertions(+) diff --git a/fsck/Makefile.am b/fsck/Makefile.am index ea3b26a..f0d7f87 100644 --- a/fsck/Makefile.am +++ b/fsck/Makefile.am @@ -21,3