hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/fs/f2fs/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 config F2FS_FS
23 tristate "F2FS filesystem support"
34 depends on BLOCK
....@@ -6,6 +7,13 @@
67 select CRYPTO_CRC32
78 select F2FS_FS_XATTR if FS_ENCRYPTION
89 select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
10
+ select LZ4_COMPRESS if F2FS_FS_LZ4
11
+ select LZ4_DECOMPRESS if F2FS_FS_LZ4
12
+ select LZ4HC_COMPRESS if F2FS_FS_LZ4HC
13
+ select LZO_COMPRESS if F2FS_FS_LZO
14
+ select LZO_DECOMPRESS if F2FS_FS_LZO
15
+ select ZSTD_COMPRESS if F2FS_FS_ZSTD
16
+ select ZSTD_DECOMPRESS if F2FS_FS_ZSTD
917 help
1018 F2FS is based on Log-structured File System (LFS), which supports
1119 versatile "flash-friendly" features. The design has been focused on
....@@ -75,25 +83,6 @@
7583
7684 If you want to improve the performance, say N.
7785
78
-config F2FS_FS_ENCRYPTION
79
- bool "F2FS Encryption"
80
- depends on F2FS_FS
81
- select FS_ENCRYPTION
82
- help
83
- This kconfig symbol is deprecated; now it just selects
84
- FS_ENCRYPTION. Use CONFIG_FS_ENCRYPTION=y in new config
85
- files.
86
-
87
-config F2FS_IO_TRACE
88
- bool "F2FS IO tracer"
89
- depends on F2FS_FS
90
- depends on FUNCTION_TRACER
91
- help
92
- F2FS IO trace is based on a function trace, which gathers process
93
- information and block IO patterns in the filesystem level.
94
-
95
- If unsure, say N.
96
-
9786 config F2FS_FAULT_INJECTION
9887 bool "F2FS fault injection facility"
9988 depends on F2FS_FS
....@@ -112,8 +101,6 @@
112101 config F2FS_FS_LZO
113102 bool "LZO compression support"
114103 depends on F2FS_FS_COMPRESSION
115
- select LZO_COMPRESS
116
- select LZO_DECOMPRESS
117104 default y
118105 help
119106 Support LZO compress algorithm, if unsure, say Y.
....@@ -121,17 +108,30 @@
121108 config F2FS_FS_LZ4
122109 bool "LZ4 compression support"
123110 depends on F2FS_FS_COMPRESSION
124
- select LZ4_COMPRESS
125
- select LZ4_DECOMPRESS
126111 default y
127112 help
128113 Support LZ4 compress algorithm, if unsure, say Y.
129114
115
+config F2FS_FS_LZ4HC
116
+ bool "LZ4HC compression support"
117
+ depends on F2FS_FS_COMPRESSION
118
+ depends on F2FS_FS_LZ4
119
+ default y
120
+ help
121
+ Support LZ4HC compress algorithm, LZ4HC has compatible on-disk
122
+ layout with LZ4, if unsure, say Y.
123
+
130124 config F2FS_FS_ZSTD
131125 bool "ZSTD compression support"
132126 depends on F2FS_FS_COMPRESSION
133
- select ZSTD_COMPRESS
134
- select ZSTD_DECOMPRESS
135127 default y
136128 help
137129 Support ZSTD compress algorithm, if unsure, say Y.
130
+
131
+config F2FS_FS_LZORLE
132
+ bool "LZO-RLE compression support"
133
+ depends on F2FS_FS_COMPRESSION
134
+ depends on F2FS_FS_LZO
135
+ default y
136
+ help
137
+ Support LZO-RLE compress algorithm, if unsure, say Y.