diff options
author | Weizhao Ouyang <o451686892@gmail.com> | 2022-05-30 09:51:14 +0200 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-05-31 17:15:30 +0200 |
commit | 4398d3c31b582db0d640b23434bf344a6c8df57c (patch) | |
tree | 6f7eb6e360f32310471985020ac1bc398e028f1f | |
parent | erofs: simplify z_erofs_pcluster_readmore() (diff) | |
download | linux-4398d3c31b582db0d640b23434bf344a6c8df57c.tar.xz linux-4398d3c31b582db0d640b23434bf344a6c8df57c.zip |
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 <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>
-rw-r--r-- | fs/erofs/zdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index b33fb64b3393..90c5b10c5794 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -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); |