[PATCH 2/2] erofs-utils: mkfs: implement multi-threaded fragments

2025-03-21 Thread Gao Xiang
Currently, only `-Eall-fragments` is allowed for multi-threaded compression. However, in many cases, we don't want the entire file merged into the packed inode, as it may impact runtime performance. Let’s implement multi-threaded compression for `-Efragments` now, although it's still not very fas

[PATCH 1/2] erofs-utils: fix heap-buffer-overflow in fragment cache

2025-03-21 Thread Gao Xiang
Allocated sizes are slightly smaller because the bitmap is `unsigned long *` instead of `unsigned char *`. Signed-off-by: Gao Xiang --- lib/fragments.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/fragments.c b/lib/fragments.c index d300439..fecebb5 100644

[PATCH v2 2/2] erofs-utils: mkfs: implement multi-threaded fragments

2025-03-21 Thread Gao Xiang
Currently, only `-Eall-fragments` is allowed for multi-threaded compression. However, in many cases, we don't want the entire file merged into the packed inode, as it may impact runtime performance. Let's implement multi-threaded compression for `-Efragments` now, although it's still not very fas

Re: [RFC PATCH v6 1/7] erofs: move `struct erofs_anon_fs_type` to super.c

2025-03-21 Thread Hongbo Li
On 2025/3/1 22:49, Hongzhen Luo wrote: Move the `struct erofs_anon_fs_type` to the super.c and expose it in preparation for the upcoming page cache share feature. Signed-off-by: Hongzhen Luo Looks good. Feel free to add: Reviewed-by: Hongbo Li --- fs/erofs/fscache.c | 13 ---

Re: [RFC PATCH v6 3/7] erofs: support domain-specific page cache share

2025-03-21 Thread Hongbo Li
On 2025/3/1 22:49, Hongzhen Luo wrote: Only files in the same domain will share the page cache. Also modify the sysfs related content in preparation for the upcoming page cache share feature. Signed-off-by: Hongzhen Luo --- fs/erofs/super.c | 12 1 file changed, 8 insertions(