allnoconfig gcc
arc allyesconfig gcc
arc defconfig gcc
arc randconfig-001-20231022 gcc
arc randconfig-001-20231023 gcc
arm allmodconfig
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
@
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
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
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