154 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2config F2FS_FS3 tristate "F2FS filesystem support"4 depends on BLOCK5 select BUFFER_HEAD6 select NLS7 select CRYPTO8 select CRYPTO_CRC329 select F2FS_FS_XATTR if FS_ENCRYPTION10 select FS_ENCRYPTION_ALGS if FS_ENCRYPTION11 select FS_IOMAP12 select LZ4_COMPRESS if F2FS_FS_LZ413 select LZ4_DECOMPRESS if F2FS_FS_LZ414 select LZ4HC_COMPRESS if F2FS_FS_LZ4HC15 select LZO_COMPRESS if F2FS_FS_LZO16 select LZO_DECOMPRESS if F2FS_FS_LZO17 select ZSTD_COMPRESS if F2FS_FS_ZSTD18 select ZSTD_DECOMPRESS if F2FS_FS_ZSTD19 help20 F2FS is based on Log-structured File System (LFS), which supports21 versatile "flash-friendly" features. The design has been focused on22 addressing the fundamental issues in LFS, which are snowball effect23 of wandering tree and high cleaning overhead.24 25 Since flash-based storages show different characteristics according to26 the internal geometry or flash memory management schemes aka FTL, F2FS27 and tools support various parameters not only for configuring on-disk28 layout, but also for selecting allocation and cleaning algorithms.29 30 If unsure, say N.31 32config F2FS_STAT_FS33 bool "F2FS Status Information"34 depends on F2FS_FS35 default y36 help37 /sys/kernel/debug/f2fs/ contains information about all the partitions38 mounted as f2fs. Each file shows the whole f2fs information.39 40 /sys/kernel/debug/f2fs/status includes:41 - major filesystem information managed by f2fs currently42 - average SIT information about whole segments43 - current memory footprint consumed by f2fs.44 45config F2FS_FS_XATTR46 bool "F2FS extended attributes"47 depends on F2FS_FS48 default y49 help50 Extended attributes are name:value pairs associated with inodes by51 the kernel or by users (see the attr(5) manual page for details).52 53 If unsure, say N.54 55config F2FS_FS_POSIX_ACL56 bool "F2FS Access Control Lists"57 depends on F2FS_FS_XATTR58 select FS_POSIX_ACL59 default y60 help61 Posix Access Control Lists (ACLs) support permissions for users and62 groups beyond the owner/group/world scheme.63 64 If you don't know what Access Control Lists are, say N65 66config F2FS_FS_SECURITY67 bool "F2FS Security Labels"68 depends on F2FS_FS_XATTR69 help70 Security labels provide an access control facility to support Linux71 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO72 Linux. This option enables an extended attribute handler for file73 security labels in the f2fs filesystem, so that it requires enabling74 the extended attribute support in advance. In particular you need this75 option if you use the setcap command to assign initial process capabi-76 lities to executables (the security.* extended attributes).77 78 If you are not using a security module, say N.79 80config F2FS_CHECK_FS81 bool "F2FS consistency checking feature"82 depends on F2FS_FS83 help84 Enables BUG_ONs which check the filesystem consistency in runtime.85 86 If you want to improve the performance, say N.87 88config F2FS_FAULT_INJECTION89 bool "F2FS fault injection facility"90 depends on F2FS_FS91 help92 Test F2FS to inject faults such as ENOMEM, ENOSPC, and so on.93 94 If unsure, say N.95 96config F2FS_FS_COMPRESSION97 bool "F2FS compression feature"98 depends on F2FS_FS99 help100 Enable filesystem-level compression on f2fs regular files,101 multiple back-end compression algorithms are supported.102 103config F2FS_FS_LZO104 bool "LZO compression support"105 depends on F2FS_FS_COMPRESSION106 default y107 help108 Support LZO compress algorithm, if unsure, say Y.109 110config F2FS_FS_LZORLE111 bool "LZO-RLE compression support"112 depends on F2FS_FS_LZO113 default y114 help115 Support LZO-RLE compress algorithm, if unsure, say Y.116 117config F2FS_FS_LZ4118 bool "LZ4 compression support"119 depends on F2FS_FS_COMPRESSION120 default y121 help122 Support LZ4 compress algorithm, if unsure, say Y.123 124config F2FS_FS_LZ4HC125 bool "LZ4HC compression support"126 depends on F2FS_FS_LZ4127 default y128 help129 Support LZ4HC compress algorithm, LZ4HC has compatible on-disk130 layout with LZ4, if unsure, say Y.131 132config F2FS_FS_ZSTD133 bool "ZSTD compression support"134 depends on F2FS_FS_COMPRESSION135 default y136 help137 Support ZSTD compress algorithm, if unsure, say Y.138 139config F2FS_IOSTAT140 bool "F2FS IO statistics information"141 depends on F2FS_FS142 default y143 help144 Support getting IO statistics through sysfs and printing out periodic145 IO statistics tracepoint events. You have to turn on "iostat_enable"146 sysfs node to enable this feature.147 148config F2FS_UNFAIR_RWSEM149 bool "F2FS unfair rw_semaphore"150 depends on F2FS_FS && BLK_CGROUP151 help152 Use unfair rw_semaphore, if system configured IO priority by block153 cgroup.154