• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

test/23-Nov-2023-1,433865

.gitignoreD23-Nov-202330 54

MakefileD23-Nov-20232.4 KiB8468

README.mdD23-Nov-2023874 1511

btrfs-benchmark.shD23-Nov-20232.6 KiB10521

btrfs-extract-benchmark.shD23-Nov-20232.9 KiB10030

decompress_sources.hD23-Nov-2023627 2010

linux.mkD23-Nov-2023996 3833

linux_zstd.hD23-Nov-202317.3 KiB46087

mem.hD23-Nov-20236.3 KiB259182

squashfs-benchmark.shD23-Nov-20231.3 KiB4016

zstd_compress_module.cD23-Nov-20236.8 KiB207171

zstd_decompress_module.cD23-Nov-20232.9 KiB12397

zstd_deps.hD23-Nov-20232.7 KiB12545

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