1.6 KiB
1.6 KiB
Pre12 Batch 04: Private compression header
Change
- Added
src/compress.hfor the decompressor request, descriptor, and backend private declarations previously located insrc/internal.h. - Added the header only to
decompressor.cand the LZ4, LZMA, Deflate, and ZSTD backend translation units. - Kept the runtime compression enum,
z_erofs_parse_cfgs, and the publicz_erofs_decompressdeclaration insrc/internal.h. - Preserved every migrated declaration signature and storage duration. No function body, callback, conditional compilation block, errno path, or buffer ownership changed.
Static validation
- The
compress.hconsumer set is exactly the five planned decompressor translation units;super.c,zdata.c, and all other public callers still include onlyinternal.h. - The include graph is acyclic:
compress.hincludesinternal.h, whileinternal.hdoes not includecompress.h. - Exact searches found one definition of each migrated structure and one
declaration of each migrated backend function. The old declarations are
absent from
internal.h. - The new header contains no Linux page, folio, bio, workqueue, XArray, shrinker, compatibility, or related runtime declarations.
- Source diff inspection and declaration normalization confirmed that this is a declaration-only move plus the five include additions.
git diff --checkandgit diff --cached --checkcompleted without errors.
Tests not run
Per the execution constraints, no build, QEMU run, smoke test, feature test,
or other dynamic test was run. The planned WITH_ZSTDIO=0 and
WITH_ZSTDIO=1 KLD builds remain required during final validation.