Skip to content

Commit 4398d3c

Browse files
owniahsiangkao
authored andcommitted
erofs: fix 'backmost' member of z_erofs_decompress_frontend
Initialize 'backmost' to true in DECOMPRESS_FRONTEND_INIT. Fixes: 5c6dcc5 ("erofs: get rid of `struct z_erofs_collector'") Signed-off-by: Weizhao Ouyang <o451686892@gmail.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Yue Hu <huyue2@coolpad.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20220530075114.918874-1-o451686892@gmail.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent aa793b4 commit 4398d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/erofs/zdata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ struct z_erofs_decompress_frontend {
213213

214214
#define DECOMPRESS_FRONTEND_INIT(__i) { \
215215
.inode = __i, .owned_head = Z_EROFS_PCLUSTER_TAIL, \
216-
.mode = COLLECT_PRIMARY_FOLLOWED }
216+
.mode = COLLECT_PRIMARY_FOLLOWED, .backmost = true }
217217

218218
static struct page *z_pagemap_global[Z_EROFS_VMAP_GLOBAL_PAGES];
219219
static DEFINE_MUTEX(z_pagemap_global_lock);

0 commit comments

Comments
 (0)