[PATCH 1/7] erofs-utils: lib: fix a misuse of `params->all_fragments`
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Oct 16 13:48:09 AEDT 2025
Should use `all_fragments` to skip special inodes.
Fixes: 7c153f1875dc ("erofs-utils: lib: migrate advance compression configurations")
Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
lib/compress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/compress.c b/lib/compress.c
index b7ca3ad..7f34b66 100644
--- a/lib/compress.c
+++ b/lib/compress.c
@@ -1873,7 +1873,7 @@ void *erofs_begin_compressed_file(struct erofs_importer *im,
ictx->fragemitted = false;
ictx->dedupe = false;
- if (params->all_fragments && !inode->fragment_size) {
+ if (all_fragments && !inode->fragment_size) {
ret = erofs_pack_file_from_fd(inode, fd, ictx->tofh);
if (ret)
goto err_free_idata;
--
2.43.5
More information about the Linux-erofs
mailing list