Name Date Size #Lines LOC

..--

test/H25-Apr-2025-1,491907

.gitignoreH A D25-Apr-202530 54

MakefileH A D25-Apr-20253.5 KiB10992

README.mdH A D25-Apr-2025874 1511

btrfs-benchmark.shH A D25-Apr-20252.6 KiB10521

btrfs-extract-benchmark.shH A D25-Apr-20252.9 KiB10030

decompress_sources.hH A D25-Apr-20251.1 KiB3511

linux.mkH A D25-Apr-20251.4 KiB4430

linux_zstd.hH A D25-Apr-202517.1 KiB44852

mem.hH A D25-Apr-20256.4 KiB263185

squashfs-benchmark.shH A D25-Apr-20251.3 KiB4016

zstd_common_module.cH A D25-Apr-2025965 3013

zstd_compress_module.cH A D25-Apr-20254.9 KiB165130

zstd_decompress_module.cH A D25-Apr-20252.7 KiB10676

zstd_deps.hH A D25-Apr-20252.7 KiB12244

README.md

1# Zstd in the Linux Kernel
2
3This directory contains the scripts needed to transform upstream zstd into the version imported into the kernel. All the transforms are automated and tested by our continuous integration.
4
5## Upgrading Zstd in the Linux Kernel
6
71. `cd` into this directory.
82. Run `make libzstd` and read the output. Make sure that all the diffs printed and changes made by the script are correct.
93. Run `make test` and ensure that it passes.
104. Import zstd into the Linux Kernel `make import LINUX=/path/to/linux/repo`
115. Inspect the diff for sanity.
126. Check the Linux Kernel history for zstd. If any patches were made to the kernel version of zstd, but not to upstream zstd, then port them upstream if necessary.
137. Test the diff. Benchmark if necessary. Make sure to test multiple architectures: At least x86, i386, and arm.
148. Submit the patch to the LKML.
15