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

2025-06-15 Thread yohan.joung
to allow users to dynamically tune the boost_zoned_gc_percent parameter Signed-off-by: yohan.joung --- fs/f2fs/gc.h| 3 ++- fs/f2fs/sysfs.c | 5 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h index 5c1eaf55e127..11fba7636af7 100644 --- a/fs/f2

Re: [f2fs-dev] [RFC PATCH v2 13/32] inject.f2fs: add member `filename' in inject_dentry

2025-06-15 Thread Sheng Yong
On 6/13/25 15:55, Chao Yu wrote: On 2025/6/10 20:37, Sheng Yong wrote: From: Sheng Yong This patch adds a new member `filename' in inject_dentry to inject dentry filename. The dentry is specified by nid option. Note that '.' and '..' dentries are special, because they are not in the parent di

Re: [f2fs-dev] [RFC PATCH v2 09/32] inject.f2fs: fix and cleanup parsing numeric options

2025-06-15 Thread Sheng Yong
On 6/13/25 14:08, Chao Yu wrote: On 2025/6/10 20:37, Sheng Yong wrote: From: Sheng Yong This patch fixes:    * parsing hex optarg of --idx option    * converting -1 to 0xff...ff of --val option and do a little cleanup of converting string to a long integer. Signed-off-by: Sheng Yong ---   fs

[f2fs-dev] [syzbot] [f2fs?] kernel BUG in f2fs_sync_node_pages

2025-06-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:488ef3560196 KEYS: Invert FINAL_PUT bit git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=10e06d7058 kernel config: https://syzkaller.appspot.com/x/.config?x=162faeb2d1eaefb4 dashboard link: https://

[f2fs-dev] [PATCH v2 0/2] f2fs: Fix DIO flags and add ioprio hint

2025-06-15 Thread Daniel Lee via Linux-f2fs-devel
The first patch corrects an issue where Direct I/O (DIO) writes ignore bio flag hints (e.g., F2FS_IOPRIO_WRITE for REQ_PRIO), making them inconsistent with buffered I/O. The second patch is to set an I/O priority hint for hot files on creation and pinned files by default. --- Changes in v2: - f2

[f2fs-dev] [PATCH v2 2/2] f2fs: use ioprio hint for hot and pinned files

2025-06-15 Thread Daniel Lee via Linux-f2fs-devel
Apply the `ioprio_hint` to set `F2FS_IOPRIO_WRITE` priority on files identified as "hot" at creation and on files that are pinned via ioctl. Signed-off-by: Daniel Lee --- fs/f2fs/f2fs.h | 19 +++ fs/f2fs/file.c | 3 +++ fs/f2fs/namei.c | 11 +++ 3 files changed, 29 ins

[f2fs-dev] [PATCH v2 1/2] f2fs: Apply bio flags to direct I/O

2025-06-15 Thread Daniel Lee via Linux-f2fs-devel
Bio flags like REQ_PRIO, REQ_META, and REQ_FUA, determined by f2fs_io_flags(), were not being applied to direct I/O (DIO) writes. This meant that DIO writes would not respect filesystem-level hints (for REQ_META/FUA) or inode-level hints (like F2FS_IOPRIO_WRITE). This patch refactors f2fs_io_flags