diff options
author | Gao Xiang <hsiangkao@redhat.com> | 2021-03-29 04:23:07 +0300 |
---|---|---|
committer | Gao Xiang <hsiangkao@redhat.com> | 2021-03-29 05:24:58 +0300 |
commit | 46249cded18ac0c4ffb7b177219510a133a51c00 (patch) | |
tree | 71682f8e22563f0c126c81d6848b276f3284f239 /fs/erofs/erofs_fs.h | |
parent | 5d50538fc567c6f3692dec1825fb38c5a0884d93 (diff) | |
download | linux-46249cded18ac0c4ffb7b177219510a133a51c00.tar.xz |
erofs: introduce on-disk lz4 fs configurations
Introduce z_erofs_lz4_cfgs to store all lz4 configurations.
Currently it's only max_distance, but will be used for new
features later.
Link: https://lore.kernel.org/r/20210329012308.28743-4-hsiangkao@aol.com
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Diffstat (limited to 'fs/erofs/erofs_fs.h')
-rw-r--r-- | fs/erofs/erofs_fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/erofs/erofs_fs.h b/fs/erofs/erofs_fs.h index dc7cc79410df..700597e9c810 100644 --- a/fs/erofs/erofs_fs.h +++ b/fs/erofs/erofs_fs.h @@ -200,6 +200,12 @@ enum { Z_EROFS_COMPRESSION_MAX }; +/* 14 bytes (+ length field = 16 bytes) */ +struct z_erofs_lz4_cfgs { + __le16 max_distance; + u8 reserved[12]; +} __packed; + /* * bit 0 : COMPACTED_2B indexes (0 - off; 1 - on) * e.g. for 4k logical cluster size, 4B if compacted 2B is off; |