From: Nolen Johnson Date: Wed, 3 Jul 2024 15:41:36 +0000 (+0000) Subject: Revert "fs: sdfat: Add config option to register sdFAT for VFAT" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bbc26c04537f103d450d0b1a57f31a83c2928d9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "fs: sdfat: Add config option to register sdFAT for VFAT" This reverts commit 38b23aab6f3467c21e020d7f63e0b1b11711e0c0. Reason for revert: Broken on QPR3, as vold now mounts SD card with `time_offset` flag which is unsupported by SDFAT. Reference: https://android-review.googlesource.com/c/platform/system/vold/+/2901301 Change-Id: Ib00e3436a1e6694547a0ebc417d482dfda9126e1 --- diff --git a/fs/sdfat/Kconfig b/fs/sdfat/Kconfig index bcad29f51b3e..62eb87bab6f6 100644 --- a/fs/sdfat/Kconfig +++ b/fs/sdfat/Kconfig @@ -22,13 +22,6 @@ config SDFAT_USE_FOR_EXFAT help If you want to register sdFAT as available for exFAT, say Y. -config SDFAT_USE_FOR_VFAT - bool "Register sdFAT as VFAT" - default y - depends on SDFAT_FS && !VFAT_FS - help - If you want to register sdFAT as available for VFAT, say Y. - config SDFAT_DELAYED_META_DIRTY bool "Enable delayed metadata dirty" default y diff --git a/fs/sdfat/sdfat.c b/fs/sdfat/sdfat.c index 4da1cff7c64d..3164fe09ce5e 100644 --- a/fs/sdfat/sdfat.c +++ b/fs/sdfat/sdfat.c @@ -4644,12 +4644,6 @@ enum { Opt_discard, Opt_fs, Opt_adj_req, -#ifdef CONFIG_SDFAT_USE_FOR_VFAT - Opt_shortname_lower, - Opt_shortname_win95, - Opt_shortname_winnt, - Opt_shortname_mixed, -#endif /* CONFIG_SDFAT_USE_FOR_VFAT */ }; static const match_table_t sdfat_tokens = { @@ -4678,12 +4672,6 @@ static const match_table_t sdfat_tokens = { {Opt_discard, "discard"}, {Opt_fs, "fs=%s"}, {Opt_adj_req, "adj_req"}, -#ifdef CONFIG_SDFAT_USE_FOR_VFAT - {Opt_shortname_lower, "shortname=lower"}, - {Opt_shortname_win95, "shortname=win95"}, - {Opt_shortname_winnt, "shortname=winnt"}, - {Opt_shortname_mixed, "shortname=mixed"}, -#endif /* CONFIG_SDFAT_USE_FOR_VFAT */ {Opt_err, NULL} }; @@ -4850,14 +4838,6 @@ static int parse_options(struct super_block *sb, char *options, int silent, IMSG("adjust request config is not enabled. ignore\n"); #endif break; -#ifdef CONFIG_SDFAT_USE_FOR_VFAT - case Opt_shortname_lower: - case Opt_shortname_win95: - case Opt_shortname_mixed: - pr_warn("[SDFAT] DRAGONS AHEAD! sdFAT only understands \"shortname=winnt\"!\n"); - case Opt_shortname_winnt: - break; -#endif /* CONFIG_SDFAT_USE_FOR_VFAT */ default: if (!silent) { sdfat_msg(sb, KERN_ERR, @@ -5213,21 +5193,6 @@ static struct file_system_type exfat_fs_type = { MODULE_ALIAS_FS("exfat"); #endif /* CONFIG_SDFAT_USE_FOR_EXFAT */ -#ifdef CONFIG_SDFAT_USE_FOR_VFAT -static struct file_system_type vfat_fs_type = { - .owner = THIS_MODULE, - .name = "vfat", - .mount = sdfat_fs_mount, -#ifdef CONFIG_SDFAT_DBG_IOCTL - .kill_sb = sdfat_debug_kill_sb, -#else - .kill_sb = kill_block_super, -#endif /* CONFIG_SDFAT_DBG_IOCTL */ - .fs_flags = FS_REQUIRES_DEV, -}; -MODULE_ALIAS_FS("vfat"); -#endif /* CONFIG_SDFAT_USE_FOR_VFAT */ - static int __init init_sdfat_fs(void) { int err; @@ -5278,14 +5243,6 @@ static int __init init_sdfat_fs(void) } #endif /* CONFIG_SDFAT_USE_FOR_EXFAT */ -#ifdef CONFIG_SDFAT_USE_FOR_VFAT - err = register_filesystem(&vfat_fs_type); - if (err) { - pr_err("[SDFAT] failed to register for vfat filesystem\n"); - goto error; - } -#endif /* CONFIG_SDFAT_USE_FOR_VFAT */ - return 0; error: sdfat_uevent_uninit(); @@ -5329,10 +5286,6 @@ static void __exit exit_sdfat_fs(void) unregister_filesystem(&exfat_fs_type); #endif /* CONFIG_SDFAT_USE_FOR_EXFAT */ -#ifdef CONFIG_SDFAT_USE_FOR_VFAT - unregister_filesystem(&vfat_fs_type); -#endif /* CONFIG_SDFAT_USE_FOR_VFAT */ - fsapi_shutdown(); }