Skip to content

Commit 8f2fb72

Browse files
committed
erofs: update compression algorithm status
The following changes are proposed in the upcoming Linux 7.0: - Enable LZMA support by default, as it's already in use by Fedora 42/43 and some Android vendors for minimal filesystem sizes; - Promote DEFLATE and Zstandard out of EXPERIMENTAL status, given that they have been landed and well-tested for over a year and are already ready for general use. Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent c134a40 commit 8f2fb72

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

Documentation/filesystems/erofs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Here are the main features of EROFS:
6363
- Support POSIX.1e ACLs by using extended attributes;
6464

6565
- Support transparent data compression as an option:
66-
LZ4, MicroLZMA and DEFLATE algorithms can be used on a per-file basis; In
67-
addition, inplace decompression is also supported to avoid bounce compressed
68-
buffers and unnecessary page cache thrashing.
66+
LZ4, MicroLZMA, DEFLATE and Zstandard algorithms can be used on a per-file
67+
basis; In addition, inplace decompression is also supported to avoid bounce
68+
compressed buffers and unnecessary page cache thrashing.
6969

7070
- Support chunk-based data deduplication and rolling-hash compressed data
7171
deduplication;

fs/erofs/Kconfig

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,14 @@ config EROFS_FS_ZIP
112112
config EROFS_FS_ZIP_LZMA
113113
bool "EROFS LZMA compressed data support"
114114
depends on EROFS_FS_ZIP
115+
default y
115116
help
116117
Saying Y here includes support for reading EROFS file systems
117118
containing LZMA compressed data, specifically called microLZMA. It
118119
gives better compression ratios than the default LZ4 format, at the
119120
expense of more CPU overhead.
120121

121-
If unsure, say N.
122+
Say N if you want to disable LZMA compression support.
122123

123124
config EROFS_FS_ZIP_DEFLATE
124125
bool "EROFS DEFLATE compressed data support"
@@ -129,9 +130,6 @@ config EROFS_FS_ZIP_DEFLATE
129130
ratios than the default LZ4 format, while it costs more CPU
130131
overhead.
131132

132-
DEFLATE support is an experimental feature for now and so most
133-
file systems will be readable without selecting this option.
134-
135133
If unsure, say N.
136134

137135
config EROFS_FS_ZIP_ZSTD
@@ -141,10 +139,7 @@ config EROFS_FS_ZIP_ZSTD
141139
Saying Y here includes support for reading EROFS file systems
142140
containing Zstandard compressed data. It gives better compression
143141
ratios than the default LZ4 format, while it costs more CPU
144-
overhead.
145-
146-
Zstandard support is an experimental feature for now and so most
147-
file systems will be readable without selecting this option.
142+
overhead and memory footprint.
148143

149144
If unsure, say N.
150145

fs/erofs/decompressor_deflate.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ static int z_erofs_load_deflate_config(struct super_block *sb,
8989
inited = true;
9090
}
9191
mutex_unlock(&deflate_resize_mutex);
92-
erofs_info(sb, "EXPERIMENTAL DEFLATE feature in use. Use at your own risk!");
9392
return 0;
9493
failed:
9594
mutex_unlock(&deflate_resize_mutex);

0 commit comments

Comments
 (0)