erofs-utils: lib: only apply `fix_dedupedfrag` to the last segment
authorGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 5 Apr 2025 18:57:04 +0000 (02:57 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 5 Apr 2025 19:29:34 +0000 (03:29 +0800)
commit72203592c5e9e84e6788a850db21caccb4e1b18e
tree9ad5a2b2c817bae17da612d0490b6f7ea43574d5
parentb22a3ecfdb95a267d16ca44e386aae918c8c4c5d
erofs-utils: lib: only apply `fix_dedupedfrag` to the last segment

Only the segment containing the fragment needs to be fixed.

Fixes: b8cc6a36b560 ("erofs-utils: mkfs: implement multi-threaded fragments")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250405185707.3202298-1-hsiangkao@linux.alibaba.com
lib/compress.c