alphaallyesconfig
x86_64randconfig-a006
ia64 allmodconfig
s390 randconfig-r044-20230204
riscvrandconfig-r042-20230204
arc randconfig-r043-20230204
sh
Reorder internal.h code so that removing unneeded macros and more.
No logic changes.
Signed-off-by: Gao Xiang
---
fs/erofs/internal.h | 84 +++--
1 file changed, 28 insertions(+), 56 deletions(-)
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
The code can be neater without forward declarations. Let's
get rid of z_erofs_do_map_blocks() forward declaration.
Signed-off-by: Gao Xiang
---
fs/erofs/zmap.c | 242
1 file changed, 119 insertions(+), 123 deletions(-)
diff --git
Just open-code the remaining one to simplify the code.
Signed-off-by: Gao Xiang
---
fs/erofs/tagptr.h | 107 --
fs/erofs/zdata.c | 26 +++
fs/erofs/zdata.h | 1 -
3 files changed, 6 insertions(+), 128 deletions(-)
delete mode 100644
Definitions in zdata.h are only used in zdata.c and for internal
use only. No logic changes.
Signed-off-by: Gao Xiang
---
fs/erofs/zdata.c | 166 +++-
fs/erofs/zdata.h | 177 ---
2 files changed, 165
We could just use a boolean in z_erofs_decompressqueue for sync
decompression to simplify the code.
Signed-off-by: Gao Xiang
---
fs/erofs/zdata.c | 42 --
fs/erofs/zdata.h | 2 +-
2 files changed, 17 insertions(+), 27 deletions(-)
diff --git
erofs_inode_datablocks() has the only one caller, let's just get
rid of it entirely. No logic changes.
Signed-off-by: Gao Xiang
---
fs/erofs/internal.h | 6 --
fs/erofs/namei.c| 18 +-
2 files changed, 5 insertions(+), 19 deletions(-)
diff --git a/fs/erofs/internal.h