[PATCH 0/3] btrfs: Add zstd support to btrfs

2018-08-27 Thread Nick Terrell
Hi all, This patch set imports the upstream kernel zstd library, patches it to work in grub, adds zstd support to the btrfs module, and adds a test case. I've separated the importing and patching of the upstream kernel zstd library for ease of review. Thanks to David Sterba for starting this proj

[PATCH 3/3] btrfs: Add zstd support to btrfs

2018-08-27 Thread Nick Terrell
Adds zstd support to the btrfs module. I'm not sure that my changes to the Makefiles are correct, please let me know if I need to do something differently. Tested on Ubuntu-18.04 with a btrfs /boot partition with and without zstd compression. A test case was also added to the test suite that fails

[PATCH 2/3] btrfs: Patch the kernel zstd

2018-08-27 Thread Nick Terrell
Applies patches to the upstream kernel zstd needed to compile in grub. * Replace kernel headers with "kerncompat.h". * Replace the unaligned memory access functions. * Add fallthrough statements for newer gcc versions. * Rename a variable from "byte" because of a conflicting typedef. * Remove the m