Should use `all_fragments` to skip special inodes.

Fixes: 7c153f1875dc ("erofs-utils: lib: migrate advance compression 
configurations")
Signed-off-by: Gao Xiang <[email protected]>
---
 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


Reply via email to