erofs-utils: fix -Ededupe crash without fragments enabled
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 2 Jan 2025 11:34:18 +0000 (19:34 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 2 Jan 2025 11:52:18 +0000 (19:52 +0800)
commitf93c462ede0329b452f132cb39a55d427cd26f84
tree20855eecf2ce931902116c09d644dd90ac514fff
parent04d6d5a84bed58713c9cfff5d135b6d3bf713556
erofs-utils: fix -Ededupe crash without fragments enabled

The root cause is the same as commit d9baceba7026 ("erofs-utils:
fix -Ededupe crash without fragments enabled").

In fact, the fragment manager should be reworked in the next major
erofs-utils version to avoid those dirty hacks.

Fixes: fc880e31b7c7 ("erofs-utils: mkfs: minor cleanup & rearrangement")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250102113418.3246744-1-hsiangkao@linux.alibaba.com
mkfs/main.c