firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-fs_fat_Kconfig.patch

54 lines
1.7 KiB
Diff

diff -drupN a/fs/fat/Kconfig b/fs/fat/Kconfig
--- a/fs/fat/Kconfig 2018-08-06 17:23:04.000000000 +0300
+++ b/fs/fat/Kconfig 2022-06-12 05:28:14.000000000 +0300
@@ -57,6 +57,37 @@ config MSDOS_FS
as well. To compile this as a module, choose M here: the module will
be called msdos.
+config PRELLOCATE_FLAG
+ tristate "Add fallocate flag"
+ depends on FAT_FS
+ help
+ If this configuration is enabled, the fallocate flag is set.
+
+config FAT1_UPDATE_ONLY
+ tristate "update fat1 only"
+ depends on FAT_FS
+ help
+ If this configuration is enabled, update only FAT1 not FAT2 when writing data.
+
+config OPTIMIZE_METADATA_REFRESH
+ tristate "Optimize metadata refresh when writing data"
+ depends on FAT_FS
+ help
+ If this configuration is enabled, Added flush interface to refresh
+ metadata uniformly when close files
+
+config TRUNCATE_NOMEM_RECLAIM
+ tristate "Add fallocate and don't reclaim."
+ depends on PRELLOCATE_FLAG
+ help
+ If this configuration enabled, don't reclaim unused fat entrys alloced by fallocate.
+
+config TRUNCATE_NOMEM_RECLAIM_DISCARD
+ tristate "use TRUNCATE_NOMEM_RECLAIM function and discard"
+ depends on PRELLOCATE_FLAG && TRUNCATE_NOMEM_RECLAIM
+ help
+ If this configuration enabled, discard fat entrys alloced by fallocate when fat free.
+
config VFAT_FS
tristate "VFAT (Windows-95) fs support"
select FAT_FS
@@ -114,3 +145,11 @@ config FAT_DEFAULT_UTF8
Say Y if you use UTF-8 encoding for file names, N otherwise.
See <file:Documentation/filesystems/vfat.txt> for more information.
+
+config FAT_READ_FAT_DIR_SUNXI
+ bool "Sunxi all read fat and some dir to mem ahead"
+ depends on MSDOS_FS || VFAT_FS
+ help
+ It will read fat and dir data to mem on mount,and relase it until
+ umount
+