[xiang-erofs:dev] BUILD SUCCESS 07ab480161171a81fa92bf518606cff4ee9ccdd6

2023-10-23 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20231022 gcc arc randconfig-001-20231023 gcc arm allmodconfig

[PATCH 2/3] erofs-utils: get rid of .preflush()

2023-10-23 Thread Gao Xiang
It's actually never used. Signed-off-by: Gao Xiang --- include/erofs/cache.h | 1 - lib/cache.c | 5 - 2 files changed, 6 deletions(-) diff --git a/include/erofs/cache.h b/include/erofs/cache.h index de5584e..31f54a4 100644 --- a/include/erofs/cache.h +++ b/include/erofs/cache.h @

[PATCH 3/3] erofs-utils: lib: propagate return code for erofs_bflush()

2023-10-23 Thread Gao Xiang
Instead of just using a boolean. Signed-off-by: Gao Xiang --- include/erofs/cache.h | 8 lib/cache.c | 21 ++--- lib/inode.c | 18 +- mkfs/main.c | 14 +++--- 4 files changed, 34 insertions(+), 27 deletions(-) diff

[PATCH 1/3] erofs-utils: lib: use BLK_ROUND_UP() for __erofs_battach()

2023-10-23 Thread Gao Xiang
Also avoid division in BLK_ROUND_UP(). Signed-off-by: Gao Xiang --- include/erofs/internal.h | 3 ++- lib/cache.c | 15 --- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include/erofs/internal.h b/include/erofs/internal.h index c1ff582..4d794ae 100644

[PATCH v1] erofs-utils: enhance fragment cache for fuse

2023-10-23 Thread Li Yiyan
This is the initial draft of the fragment cache that I proposed for Fuse. I have added an LRU cache that allows us to check if there is a cached fragment block based on the offset when we need to read a fragment inode. If a cached block exists, we can then read it from memory, saving one disk read