[xiang-erofs:dev-test] BUILD SUCCESS 55262d32779907c171eb0e590e5558626f842011

2023-02-04 Thread kernel test robot
alphaallyesconfig x86_64randconfig-a006 ia64 allmodconfig s390 randconfig-r044-20230204 riscvrandconfig-r042-20230204 arc randconfig-r043-20230204 sh

[PATCH 6/6] erofs: tidy up internal.h

2023-02-04 Thread Gao Xiang
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

[PATCH 5/6] erofs: get rid of z_erofs_do_map_blocks() forward declaration

2023-02-04 Thread Gao Xiang
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

[PATCH 3/6] erofs: remove tagged pointer helpers

2023-02-04 Thread Gao Xiang
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

[PATCH 4/6] erofs: move zdata.h into zdata.c

2023-02-04 Thread Gao Xiang
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

[PATCH 2/6] erofs: avoid tagged pointers to mark sync decompression

2023-02-04 Thread Gao Xiang
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

[PATCH 1/6] erofs: get rid of erofs_inode_datablocks()

2023-02-04 Thread Gao Xiang
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