summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2026-09-17 16:23:32 -0700
committerNathan Chancellor <nathan@kernel.org>2026-09-17 16:23:32 -0700
commita2a402bd5e5a4fa466d6034e70b18b6ac22f873d (patch)
tree9ac2c18e0b83d4498773c09785c5ddd9c6e38f9f
parentdbe1ae2304a3b02c3bf6ae82895ff232a29f3fee (diff)
erofs: Revert "Fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS default logic"
With commit dbe1ae2304a3 ("kconfig: fix extra output from savedefconfig on out-of-range defaults") applied, commit ab74edaeb1ae ("erofs: Fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS default logic") is no longer necessary, so revert it. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
-rw-r--r--fs/erofs/Kconfig8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/erofs/Kconfig b/fs/erofs/Kconfig
index 37495e95a78d..2dfc313588d2 100644
--- a/fs/erofs/Kconfig
+++ b/fs/erofs/Kconfig
@@ -132,13 +132,11 @@ config EROFS_FS_ZIP_LZMA
Say N if you want to disable LZMA compression support.
config EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS
- int "EROFS LZMA default maximum decompression streams" if SMP
+ int "EROFS LZMA default maximum decompression streams"
depends on EROFS_FS_ZIP_LZMA
range 1 NR_CPUS if SMP
range 1 1 if !SMP
- default 16 if SMP && NR_CPUS >= 16
- default NR_CPUS if SMP
- default 1
+ default 16
help
By default EROFS allocates one LZMA decompression stream per CPU.
Each stream can hold a dictionary of up to 8 MiB taken from the
@@ -146,7 +144,7 @@ config EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS
of memory. This caps the default; the lzma_streams module parameter
still overrides it.
- If unsure, keep the suggested default (16 or lower).
+ If unsure, keep the default of 16.
config EROFS_FS_ZIP_DEFLATE
bool "EROFS DEFLATE compressed data support"