[f2fs-dev] [PATCH] mkfs.f2fs: ensure zone size is equal or bigger than segment size

2025-05-22 Thread Daeho Jeong
From: Daeho Jeong Otherwise, it doesn't work with a crash. Signed-off-by: Daeho Jeong --- lib/libf2fs.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index d2579d7..396e22c 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -1346,6 +1346,11 @@ int f2fs_g

[f2fs-dev] [PATCH v2] mkfs.f2fs: ensure zone size is equal or bigger than segment size

2025-05-22 Thread Daeho Jeong
From: Daeho Jeong Otherwise, it doesn't work with a crash. Signed-off-by: Daeho Jeong --- v2: relocate the code --- lib/libf2fs.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index d2579d7..148dc12 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -134

[f2fs-dev] [PATCH v2] f2fs/014: test for missing 'trimmed' flag issue

2025-05-22 Thread Chunhai Guo via Linux-f2fs-devel
This is a regression test case to verify whether the CP_TRIMMED_FLAG is properly set after performing the following steps: 1. mount the f2fs filesystem 2. create a file, write data to it, then delete the file 3. unmount the filesystem 4. verify that the 'trimmed' flag is set in the checkpoint state

Re: [f2fs-dev] [PATCH v2] f2fs/014: test for missing 'trimmed' flag issue

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/22/25 15:57, Chunhai Guo wrote: > This is a regression test case to verify whether the CP_TRIMMED_FLAG is > properly set after performing the following steps: > 1. mount the f2fs filesystem > 2. create a file, write data to it, then delete the file > 3. unmount the filesystem > 4. verify that

Re: [f2fs-dev] [PATCH 2/2] f2fs: fix missing small discard in fstrim

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 1/3/25 15:00, Chunhai Guo wrote: > 在 1/3/2025 11:36 AM, Chao Yu 写道: >> On 2025/1/2 18:13, Chunhai Guo wrote: >>> If userspace issues an fstrim with a range that does not include all >>> segments with small discards, these segments will be reused without being >> I didn't get it, if fstrim didn't

Re: [f2fs-dev] [PATCH] f2fs : add a ioctl to estimate compression gain

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/22/25 09:52, wangzijie wrote: > This patch add a ioctl to estimate compression gain. In user mode > compression, users can define > the interval between clusters for estimation sampling before compress and > release ioctl to a file. > This can help users to decide whether to do compress in

Re: [f2fs-dev] [PATCH 2/2] f2fs: fix missing small discard in fstrim

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 1/2/25 18:13, Chunhai Guo wrote: > If userspace issues an fstrim with a range that does not include all > segments with small discards, these segments will be reused without being > discarded. This patch fixes this issue. > This patch is somewhat similar to commit 650d3c4e56e1 ("f2fs: fix a miss

Re: [f2fs-dev] [PATCH] f2fs : add a ioctl to estimate compression gain

2025-05-22 Thread wangzijie
>On 5/22/25 09:52, wangzijie wrote: >> This patch add a ioctl to estimate compression gain. In user mode >> compression, users can define >> the interval between clusters for estimation sampling before compress and >> release ioctl to a file. >> This can help users to decide whether to do compre

Re: [f2fs-dev] [PATCH v2] f2fs: fix to skip f2fs_balance_fs() if checkpoint is disabled

2025-05-22 Thread Zhiguo Niu
Chao Yu via Linux-f2fs-devel 于2025年5月21日周三 20:02写道: > > INFO: task syz-executor328:5856 blocked for more than 144 seconds. > Not tainted 6.15.0-rc6-syzkaller-00208-g3c21441eeffc #0 > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > task:syz-executor328 state:D stac

Re: [f2fs-dev] [PATCH v2] f2fs: fix to skip f2fs_balance_fs() if checkpoint is disabled

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/23/25 09:39, Zhiguo Niu wrote: > Chao Yu via Linux-f2fs-devel > 于2025年5月21日周三 20:02写道: >> >> INFO: task syz-executor328:5856 blocked for more than 144 seconds. >> Not tainted 6.15.0-rc6-syzkaller-00208-g3c21441eeffc #0 >> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this

[f2fs-dev] [PATCH v3] f2fs: fix to skip f2fs_balance_fs() if checkpoint is disabled

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
Syzbot reports a f2fs bug as below: INFO: task syz-executor328:5856 blocked for more than 144 seconds. Not tainted 6.15.0-rc6-syzkaller-00208-g3c21441eeffc #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor328 state:D stack:24392 pid:5856 tgid:583

[f2fs-dev] [PATCH] f2fs: enable tuning of boost_zoned_gc_percent via sysfs

2025-05-22 Thread yohan.joung
to allow users to dynamically tune the boost_zoned_gc_percent parameter Signed-off-by: yohan.joung --- fs/f2fs/gc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h index 5c1eaf55e127..f9ff68dc2bcc 100644 --- a/fs/f2fs/gc.h +++ b/fs/f2fs/gc.h @@

Re: [f2fs-dev] [PATCH v3] f2fs: fix to skip f2fs_balance_fs() if checkpoint is disabled

2025-05-22 Thread Zhiguo Niu
Chao Yu via Linux-f2fs-devel 于2025年5月23日周五 11:30写道: > > Syzbot reports a f2fs bug as below: > > INFO: task syz-executor328:5856 blocked for more than 144 seconds. > Not tainted 6.15.0-rc6-syzkaller-00208-g3c21441eeffc #0 > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this mess

Re: [f2fs-dev] [PATCH v2] mkfs.f2fs: ensure zone size is equal or bigger than segment size

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/23/25 02:26, Daeho Jeong wrote: > From: Daeho Jeong > > Otherwise, it doesn't work with a crash. > > Signed-off-by: Daeho Jeong > --- > v2: relocate the code > --- > lib/libf2fs.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/lib/libf2fs.c b/lib/libf2fs.c > index d2579d7.

Re: [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/14/25 16:45, Zhiguo Niu wrote: > Should be "old_dir" here. > > Fixes: 5c57132eaf52 ("f2fs: support project quota") > Signed-off-by: Zhiguo Niu Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.ne

Re: [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/14/25 16:45, Zhiguo Niu wrote: > no logic changes. > > Signed-off-by: Zhiguo Niu Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-deve

Re: [f2fs-dev] [PATCH] f2fs: enable tuning of boost_zoned_gc_percent via sysfs

2025-05-22 Thread Chao Yu via Linux-f2fs-devel
On 5/23/25 08:21, yohan.joung wrote: > to allow users to dynamically tune > the boost_zoned_gc_percent parameter > > Signed-off-by: yohan.joung > --- > fs/f2fs/gc.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h > index 5c1eaf55e127..f9ff