Skip to content

Commit

Permalink
erofs: fix 'backmost' member of z_erofs_decompress_frontend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ownia authored and hsiangkao committed May 31, 2022
1 parent aa793b4 commit 4398d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/erofs/zdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,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);
Expand Down

0 comments on commit 4398d3c

Please sign in to comment.