• Home
Name Date Size #Lines LOC

..--

test/03-May-2024-1,484901

.gitignoreD03-May-202430 54

MakefileD03-May-20243.4 KiB10689

README.mdD03-May-2024874 1511

btrfs-benchmark.shD03-May-20242.6 KiB10521

btrfs-extract-benchmark.shD03-May-20242.9 KiB10030

decompress_sources.hD03-May-20241.1 KiB3511

linux.mkD03-May-20241.5 KiB4834

linux_zstd.hD03-May-202417.1 KiB44852

mem.hD03-May-20246.3 KiB262184

squashfs-benchmark.shD03-May-20241.3 KiB4016

zstd_compress_module.cD03-May-20244.7 KiB161126

zstd_decompress_module.cD03-May-20242.7 KiB10676

zstd_deps.hD03-May-20242.8 KiB12645

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