[f2fs-dev] [PATCH v2] f2fs_io: add test_create_perf command

2025-06-13 Thread Daniel Lee via Linux-f2fs-devel
A new command 'test_create_perf', has been introduced to measure the performance of creating and deleting many files. Signed-off-by: Daniel Lee --- v2: Rename command and make fsync optional --- tools/f2fs_io/f2fs_io.c | 139 1 file changed, 139 insertion

Re: [f2fs-dev] [PATCH] fscrypt: don't use hardware offload Crypto API drivers

2025-06-13 Thread Eric Biggers via Linux-f2fs-devel
On Fri, Jun 13, 2025 at 11:01:03AM +0200, Maxime MERE wrote: > Hello, > > On 6/11/25 22:58, Eric Biggers wrote: > > To protect users from these buggy and seemingly unhelpful drivers that I > > have no way of testing, let's make fscrypt not use them. Unfortunately > > there is no direct support fo

Re: [f2fs-dev] [PATCH] fscrypt: don't use hardware offload Crypto API drivers

2025-06-13 Thread Giovanni Cabiddu
On Fri, Jun 13, 2025 at 01:23:57AM +, Eric Biggers wrote: > On Thu, Jun 12, 2025 at 03:57:43PM +, Eric Biggers wrote: > > On Thu, Jun 12, 2025 at 09:50:26AM +0100, Giovanni Cabiddu wrote: > > > On Wed, Jun 11, 2025 at 11:25:21PM -0700, Eric Biggers wrote: > > > > > > ... > > > > > > > FWI

[f2fs-dev] [PATCH] f2fs: avoid non-section-aligned size pinned file generation

2025-06-13 Thread wangzijie
To prevent non-section-aligned size pinned file generated from truncation, add check condition in setattr. Meanwhile, clean up F2FS_I_SB. Signed-off-by: wangzijie --- fs/f2fs/file.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs

Re: [f2fs-dev] [PATCH] fscrypt: don't use hardware offload Crypto API drivers

2025-06-13 Thread Maxime MERE
Hello, On 6/11/25 22:58, Eric Biggers wrote: To protect users from these buggy and seemingly unhelpful drivers that I have no way of testing, let's make fscrypt not use them. Unfortunately there is no direct support for doing so in the Crypto API, but we can achieve something very close to it b

Re: [f2fs-dev] [PATCH] f2fs: continue to allocate pinned section when gc happens EAGAIN

2025-06-13 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/13 16:25, Zhiguo Niu wrote: wangzijie 于2025年6月12日周四 20:38写道: On 6/12/25 11:27, wangzijie wrote: Wu Bo once mentioned a fallocate fail scenario in this link[1]. After commit 3fdd89b452c2("f2fs: prevent writing without fallocate() for pinned files"), we cannot directly generate 4K si

Re: [f2fs-dev] [PATCH] f2fs: continue to allocate pinned section when gc happens EAGAIN

2025-06-13 Thread Zhiguo Niu
wangzijie 于2025年6月12日周四 20:38写道: > > > On 6/12/25 11:27, wangzijie wrote: > > > Wu Bo once mentioned a fallocate fail scenario in this link[1]. > > > After commit 3fdd89b452c2("f2fs: prevent writing without fallocate() > > > for pinned files"), we cannot directly generate 4K size file and > > > pi

Re: [f2fs-dev] [PATCH] f2fs_io: add create_speed command

2025-06-13 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/13 12:02, Daniel Lee wrote: A new command 'create_speed', has been introduced to measure the performance of creating and deleting many files. Signed-off-by: Daniel Lee --- tools/f2fs_io/f2fs_io.c | 112 1 file changed, 112 insertions(+) dif

Re: [f2fs-dev] [PATCH v2] f2fs: introduce reserved_pin_section sysfs entry

2025-06-13 Thread wangzijie
> This patch introduces /sys/fs/f2fs//reserved_pin_section for tuning > @needed parameter of has_not_enough_free_secs(), if we configure it w/ > zero, it can avoid f2fs_gc() as much as possible while fallocating on > pinned file. > > Signed-off-by: Chao Yu Thanks for helping to introduce this sy

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

2025-06-13 Thread Chao Yu via Linux-f2fs-devel
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 directory of nid. So this patch also

Re: [f2fs-dev] [RFC PATCH v2 12/32] inject.f2fs: add members in inject_node

2025-06-13 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/10 20:37, Sheng Yong wrote: From: Sheng Yong This patch adds new members in inject_node to inject inode: * i_ext.fofs: extent fofs * i_ext.blk_addr: extent blk_addr * i_ext.len: extent len * i_inline_xattr_size: inline xattr size * i_compr_blocks: compression blocks Signed-

Re: [f2fs-dev] [RFC PATCH v2 10/32] inject.f2fs: add members in inject_cp

2025-06-13 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/10 20:37, Sheng Yong wrote: From: Sheng Yong The following members are added to inject more fields in cp: * next_blkaddr: inject fsync dnodes An error is returned if no fsync dnode is found. However, the injection is not supported on zoned device. This is because fsync dnodes must

Re: [f2fs-dev] [PATCH 2/2] f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic

2025-06-13 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/13 9:50, Zhiguo Niu wrote: The decompress_io_ctx may be released asynchronously after I/O completion. If this file is deleted immediately after read, and the kworker of processing post_read_wq has not been executed yet due to high workloads, It is possible that the inode(f2fs_inode_info