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 <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Reviewed-by: Yue Hu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
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)