[f2fs-dev] [PATCH v3] f2fs: avoid splitting bio when reading multiple pages

2025-06-24 Thread Jianan Huang via Linux-f2fs-devel
When fewer pages are read, nr_pages may be smaller than nr_cpages. Due to the nr_vecs limit, the compressed pages will be split into multiple bios and then merged at the block level. In this case, nr_cpages should be used to pre-allocate bvecs. To handle this case, align max_nr_pages to cluster_siz

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

2025-06-24 Thread Eric Biggers via Linux-f2fs-devel
On Wed, Jun 11, 2025 at 11:25:21PM -0700, Eric Biggers wrote: > On Thu, Jun 12, 2025 at 12:59:14AM +, Eric Biggers wrote: > > On Thu, Jun 12, 2025 at 09:21:26AM +0900, Simon Richter wrote: > > > Hi, > > > > > > On 6/12/25 05:58, Eric Biggers wrote: > > > > > > > But > > > > otherwise this sty

Re: [f2fs-dev] [PATCH v2] f2fs: avoid splitting bio when reading multiple pages

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 6/18/25 16:17, Jianan Huang wrote: > When fewer pages are read, nr_pages may be smaller than nr_cpages. Due > to the nr_vecs limit, the compressed pages will be split into multiple > bios and then merged at the block level. In this case, nr_cpages should > be used to pre-allocate bvecs. > To han

Re: [f2fs-dev] [PATCH v3] f2fs_io: add test_create_perf command

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 6/17/25 22:04, Daniel Lee wrote: > A new command 'test_create_perf', has been introduced to measure > the performance of creating and deleting many files. > > Signed-off-by: Daniel Lee Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing li

Re: [f2fs-dev] [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 6/25/25 08:14, yohan.joung wrote: > to check the upper boundary when setting gc_boost_zoned_gc_percent > > Signed-off-by: yohan.joung Fixes: 9a481a1c16f4 ("f2fs: create gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent") Reviewed-by: Chao Yu Thanks, __

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

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 6/25/25 08:13, yohan.joung wrote: > to allow users to dynamically tune > the boost_zoned_gc_percent parameter > > Signed-off-by: yohan.joung Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net ht

[f2fs-dev] [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent

2025-06-24 Thread yohan.joung
to check the upper boundary when setting gc_boost_zoned_gc_percent Signed-off-by: yohan.joung --- fs/f2fs/sysfs.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 51be7ffb38c5..2b5c35ce7b8c 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -6

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

2025-06-24 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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h index 5c1eaf55e127..11fba7636af7 100644 --- a/fs/f2fs/gc.h +++ b/fs/f2fs/gc.h @@ -

Re: [f2fs-dev] [PATCH v4 1/2] f2fs: convert F2FS_I_SB to sbi in f2fs_setattr()

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/24 11:59, wangzijie wrote: Introduce sbi in f2fs_setattr() and convert F2FS_I_SB to it. No logic change, just cleanup and prepare to get CAP_BLKS_PER_SEC(sbi). Signed-off-by: wangzijie Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel

Re: [f2fs-dev] [PATCH v4 2/2] f2fs: don't allow unaligned truncation to smaller/equal size on pinned file

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/24 11:59, wangzijie wrote: To prevent scattered pin block generation, don't allow non-section aligned truncation to smaller or equal size on pinned file. But for truncation to larger size, after commit 3fdd89b452c2("f2fs: prevent writing without fallocate() for pinned files"), we onl

Re: [f2fs-dev] [PATCH v2] f2fs: fix KMSAN uninit-value in extent_info usage

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/19 20:09, Abinash Singh wrote: KMSAN reported a use of uninitialized value in `__is_extent_mergeable()` and `__is_back_mergeable()` via the read extent tree path. The root cause is that `get_read_extent_info()` only initializes three fields (`fofs`, `blk`, `len`) of `struct extent_info

Re: [f2fs-dev] [PATCH] f2fs: Fix the typos in comments

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/18 01:40, Swarna Prabhu wrote: This patch fixes minor typos in comments in f2fs. Signed-off-by: Swarna Prabhu Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourcefor

Re: [f2fs-dev] [PATCH] f2fs: avoid splitting bio when reading multiple pages

2025-06-24 Thread Chao Yu via Linux-f2fs-devel
On 2025/6/17 21:13, Sheng Yong wrote: On 6/17/25 19:37, Chao Yu via Linux-f2fs-devel wrote: On 6/17/25 13:55, Jianan Huang wrote: When fewer pages are read, nr_pages may be smaller than nr_cpages. Due to the nr_vecs limit, the compressed pages will be split into multiple bios and then merged at

[f2fs-dev] [STABLE 5.15+] f2fs: sysfs: add encoding_flags entry

2025-06-24 Thread Lee Jones via Linux-f2fs-devel
On Wed, 16 Apr 2025, Chao Yu wrote: > This patch adds a new sysfs entry /sys/fs/f2fs//encoding_flags, > it is a read-only entry to show the value of sb.s_encoding_flags, the > value is hexadecimal. > > === == > Flag_NameFlag_Value > ===