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

2025-05-21 Thread Chao Yu via Linux-f2fs-devel
On 5/21/25 14:49, 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

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

2025-05-21 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

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

2025-05-21 Thread wangzijie
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 a fast way, especially for some large files.

Re: [f2fs-dev] [PATCH v3] f2fs: fix missing discard candidates in fstrim

2025-05-21 Thread Chunhai Guo via Linux-f2fs-devel
在 3/14/2025 6:38 PM, Chunhai Guo 写道: > 在 3/12/2025 10:27 PM, Jaegeuk Kim 写道: >> On 03/12, Chunhai Guo wrote: >>> fstrim may miss candidates that need to be discarded, as shown in the >>> examples below. >>> >>> The root cause is that when cpc->reason is set with CP_DISCARD, >>> add_discard_addrs()

Re: [f2fs-dev] [PATCH] fsck.f2fs: fix null buffer error with dev_fill

2025-05-21 Thread Chao Yu via Linux-f2fs-devel
On 5/22/25 03:41, Daeho Jeong wrote: > From: Daeho Jeong > > Make fsck use dev_fill_block() with zeroed buffer instead of dev_fill(). > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@l

[f2fs-dev] [PATCH] fsck.f2fs: fix null buffer error with dev_fill

2025-05-21 Thread Daeho Jeong
From: Daeho Jeong Make fsck use dev_fill_block() with zeroed buffer instead of dev_fill(). Signed-off-by: Daeho Jeong --- fsck/fsck.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 893eea7..4d05e1b 100644 --- a/fsck/fsck.c

Re: [f2fs-dev] [syzbot] [f2fs?] INFO: task hung in freeze_super (6)

2025-05-21 Thread Chao Yu via Linux-f2fs-devel
#syz test: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/syzbot On 5/21/25 14:35, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:3c21441eeffc Merge tag 'acpi-6.15-rc7' of git://git.kernel.. > git tree: upstream > console+strace:

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

2025-05-21 Thread Chao Yu via Linux-f2fs-devel
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:5832 ppid:5826 task_flags:0x400040 f

Re: [f2fs-dev] [syzbot] [f2fs?] INFO: task hung in freeze_super (6)

2025-05-21 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: unregister_netdevice: waiting for DEV to become free unregister_netdevice: waiting for batadv0 to become free. Usage count = 3 Tested on: commit: a8454e3b f2fs: fix to skip f2fs_balance_fs() i

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

2025-05-21 Thread Chao Yu via Linux-f2fs-devel
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:5832 ppid:5826 task_flags:0x400040 f

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

2025-05-21 Thread Chunhai Guo via Linux-f2fs-devel
在 1/3/2025 3:00 PM, Chunhai Guo 写道: > 在 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