Skip to content

ubifs: add lz4hc compression

Hyunchul Lee linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ubifs: add lz4hc compressorfs/ubifs/Kconfig fs/ubifs/compress.c fs/ubifs/super.c +1 more+38 -10 replies
2/3ubifs: change type of ubifs_inode's compr_type to unsigend:16fs/ubifs/ubifs.h+1 -10 replies
3/3ubifs: add "compr=lz4hc" into ubifs.txtDocumentation/filesystems/ubifs.txt+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ubifs: add lz4hc compression

From: Hyunchul Lee <[email protected]>

This patch set is for adding support for lz4hc compression. lz4hc's compression ratio is comparable to zlib, but its compression/decompression speed is faster than zlib[1].

Another compression type cannot be added any more in respect that type of ubifs_inode's compr_type is "unsigned:2" and there are 4 compression types. There may be overflow in assignment to compr_type, and prevision version of ubifs is trying to decompress file with wrong compression type.

[1] https://github.com/lz4/lz4

Brent Taylor (1):
ubifs: add lz4hc compressor

Hyunchul Lee (2):
ubifs: change type of ubifs_inode's compr_type to unsigend:16
ubifs: add "compr=lz4hc" into ubifs.txt

 Documentation/filesystems/ubifs.txt |  1 +
 fs/ubifs/Kconfig                    | 10 ++++++++++
 fs/ubifs/compress.c                 | 25 ++++++++++++++++++++++++-
 fs/ubifs/super.c                    |  2 ++
 fs/ubifs/ubifs-media.h              |  2 ++
 fs/ubifs/ubifs.h                    |  2 +-
 6 files changed, 40 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1