Skip to content
Snippets Groups Projects
  1. Nov 09, 2021
    • Nick Terrell's avatar
      lib: zstd: Add decompress_sources.h for decompress_unzstd · 2479b523
      Nick Terrell authored
      
      Adds decompress_sources.h which includes every .c file necessary for
      zstd decompression. This is used in decompress_unzstd.c so the internal
      structure of the library isn't exposed.
      
      This allows us to upgrade the zstd library version without modifying any
      callers. Instead we just need to update decompress_sources.h.
      
      Signed-off-by: default avatarNick Terrell <terrelln@fb.com>
      Tested By: Paul Jones <paul@pauljones.id.au>
      Tested-by: default avatarOleksandr Natalenko <oleksandr@natalenko.name>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM/Clang v13.0.0 on x86-64
      Tested-by: default avatarJean-Denis Girard <jd.girard@sysnux.pf>
      2479b523
    • Nick Terrell's avatar
      lib: zstd: Add kernel-specific API · cf30f6a5
      Nick Terrell authored
      
      This patch:
      - Moves `include/linux/zstd.h` -> `include/linux/zstd_lib.h`
      - Updates modified zstd headers to yearless copyright
      - Adds a new API in `include/linux/zstd.h` that is functionally
        equivalent to the in-use subset of the current API. Functions are
        renamed to avoid symbol collisions with zstd, to make it clear it is
        not the upstream zstd API, and to follow the kernel style guide.
      - Updates all callers to use the new API.
      
      There are no functional changes in this patch. Since there are no
      functional change, I felt it was okay to update all the callers in a
      single patch. Once the API is approved, the callers are mechanically
      changed.
      
      This patch is preparing for the 3rd patch in this series, which updates
      zstd to version 1.4.10. Since the upstream zstd API is no longer exposed
      to callers, the update can happen transparently.
      
      Signed-off-by: default avatarNick Terrell <terrelln@fb.com>
      Tested By: Paul Jones <paul@pauljones.id.au>
      Tested-by: default avatarOleksandr Natalenko <oleksandr@natalenko.name>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM/Clang v13.0.0 on x86-64
      Tested-by: default avatarJean-Denis Girard <jd.girard@sysnux.pf>
      cf30f6a5
  2. Jul 01, 2021
  3. Sep 03, 2020
  4. Jul 31, 2020
Loading