[PATCH 1/3] erofs-utils: mkfs: fix unintended multi-threaded disable
Gao Xiang
hsiangkao at linux.alibaba.com
Fri Nov 7 21:06:07 AEDT 2025
Fixes: c75cfaf6956d ("erofs-utils: mkfs: Turn off deduplication under chunk mode with '-E^dedupe'")
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 3b4d230eda21..7a5d4374afe2 100644
--- a/lib/compress.c
+++ b/lib/compress.c
@@ -1743,7 +1743,7 @@ static int z_erofs_mt_global_init(struct erofs_importer *im)
if (workers < 1)
return 0;
/* XXX: `dedupe` is actually not a global option here. */
- if (workers >= 1 && params->dedupe != EROFS_DEDUPE_FORCE_OFF) {
+ if (workers >= 1 && params->dedupe == EROFS_DEDUPE_FORCE_ON) {
erofs_warn("multi-threaded dedupe is NOT implemented for now");
cfg.c_mt_workers = 0;
} else {
--
2.43.5
More information about the Linux-erofs
mailing list