[f2fs-dev] [PATCH v2 13/16] writeback: configure the num of writeback contexts between 0 and number of online cpus

2025-10-14 Thread Kundan Kumar
The number of writeback contexts can be configured, with a valid range between 0 and the number of online CPUs. Inodes are then distributed across these contexts, enabling parallel writeback. Signed-off-by: Kundan Kumar Signed-off-by: Anuj Gupta --- mm/backing-dev.c | 6 ++ 1 file changed,

[f2fs-dev] [PATCH v2 08/16] writeback: add support to collect stats for all writeback ctxs

2025-10-14 Thread Kundan Kumar
Modified stats collection to collect stats for all the writeback contexts within a bdi. Signed-off-by: Kundan Kumar Signed-off-by: Anuj Gupta --- mm/backing-dev.c | 72 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/mm/backing-de

[f2fs-dev] [PATCH v2 04/16] writeback: affine inode to a writeback ctx within a bdi

2025-10-14 Thread Kundan Kumar
Affine inode to a writeback context. This helps in minimizing the filesytem fragmentation due to inode being processed by different threads. To support parallel writeback, wire up a new superblock operation get_inode_wb_ctx(). Filesystems can override this callback and select desired writeback con

[f2fs-dev] [PATCH v2 01/16] writeback: add infra for parallel writeback

2025-10-14 Thread Kundan Kumar
This is a prep patch which introduces a new bdi_writeback_ctx structure that enables us to have multiple writeback contexts for parallel writeback. Each bdi now can have multiple writeback contexts, with each writeback context having has its own cgwb tree. Modify all the functions/places that oper

Re: [f2fs-dev] [Crash Report] WARNING in f2fs_init_xattr_caches

2025-10-14 Thread Chao Yu via Linux-f2fs-devel
On 10/14/25 15:28, HONG, Yun wrote: > Hi Chao, > > Thanks for the fix. I've tested it on my setup, and the crash no longer > occurs with this fix applied. Hi Hong, Thanks for the test, let me send a formal patch for fix. :) Thanks, > > Best, > Yun > > From: C

[f2fs-dev] [PATCH 2/4] f2fs: convert add_ipu_page() to use folio

2025-10-14 Thread Chao Yu via Linux-f2fs-devel
No logic changes. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 50538c26c1a1..0279340336be 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -775,7 +775,7 @@ static void del_bio_entry(s