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,
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
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
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
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
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