erofs: fix 'backmost' member of z_erofs_decompress_frontend
PATCH 1/1 erofs: fix 'backmost' member of z_erofs_decompress_frontend
Initialize 'backmost' to true in DECOMPRESS_FRONTEND_INIT.
Fixes 5c6dcc57e2e5 ("erofs: get rid of `struct z_erofs_collector'")
Signed-off-by Weizhao Ouyang <[email protected]>
--- fs/erofs/zdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/erofs/zdata.c +1 -1
@@ -214,7 +214,7 @@ struct z_erofs_decompress_frontend {#define DECOMPRESS_FRONTEND_INIT (__i) { \ .inode = __i, .owned_head = Z_EROFS_PCLUSTER_TAIL, \ - .mode = COLLECT_PRIMARY_FOLLOWED } + .mode = COLLECT_PRIMARY_FOLLOWED, .backmost = true }static struct page *z_pagemap_global[Z_EROFS_VMAP_GLOBAL_PAGES ];static DEFINE_MUTEX (z_pagemap_global_lock);
Signature · 1 line
2.34.1
Quoted 4 lines · Weizhao Ouyang
Initialize 'backmost' to true in
DECOMPRESS_FRONTEND_INIT.Fixes 5c6dcc57e2e5 ("erofs: get rid of `struct z_erofs_collector'")Signed-off-by Weizhao Ouyang <[email protected]>
Many thanks for the in-time catching! ;)
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang
Quoted 19 lines
--- fs/erofs/zdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/erofs/zdata.c +1
-1@@ -214,7 +214,7 @@ struct z_erofs_decompress_frontend {#define DECOMPRESS_FRONTEND_INIT (__i) { \ .inode = __i, .owned_head = Z_EROFS_PCLUSTER_TAIL, \ - .mode = COLLECT_PRIMARY_FOLLOWED } + .mode = COLLECT_PRIMARY_FOLLOWED, .backmost = true }static struct page *z_pagemap_global[Z_EROFS_VMAP_GLOBAL_PAGES ];static DEFINE_MUTEX (z_pagemap_global_lock);Signature · 1 line
2.34.1
Quoted 4 lines · On Mon, 30 May 2022 15:51:14 +0800 Weizhao Ouyang <[email protected]> wrote:
Initialize 'backmost' to true in
DECOMPRESS_FRONTEND_INIT.Fixes 5c6dcc57e2e5 ("erofs: get rid of `struct z_erofs_collector'")Signed-off-by Weizhao Ouyang <[email protected]>
Good catch.
Reviewed-by Yue Hu <[email protected]>
Quoted 17 lines
--- fs/erofs/zdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/erofs/zdata.c +1
-1@@ -214,7 +214,7 @@ struct z_erofs_decompress_frontend {#define DECOMPRESS_FRONTEND_INIT (__i) { \ .inode = __i, .owned_head = Z_EROFS_PCLUSTER_TAIL, \ - .mode = COLLECT_PRIMARY_FOLLOWED } + .mode = COLLECT_PRIMARY_FOLLOWED, .backmost = true }static struct page *z_pagemap_global[Z_EROFS_VMAP_GLOBAL_PAGES ];static DEFINE_MUTEX (z_pagemap_global_lock);
Quoted 4 lines · Weizhao Ouyang
Initialize 'backmost' to true in
DECOMPRESS_FRONTEND_INIT.Fixes 5c6dcc57e2e5 ("erofs: get rid of `struct z_erofs_collector'")Signed-off-by Weizhao Ouyang <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,