aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r--fs/fat/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index a5599052116c..226281068a46 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -1127,7 +1127,7 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat,
1127 } 1127 }
1128 opts->name_check = 'n'; 1128 opts->name_check = 'n';
1129 opts->quiet = opts->showexec = opts->sys_immutable = opts->dotsOK = 0; 1129 opts->quiet = opts->showexec = opts->sys_immutable = opts->dotsOK = 0;
1130 opts->utf8 = opts->unicode_xlate = 0; 1130 opts->unicode_xlate = 0;
1131 opts->numtail = 1; 1131 opts->numtail = 1;
1132 opts->usefree = opts->nocase = 0; 1132 opts->usefree = opts->nocase = 0;
1133 opts->tz_set = 0; 1133 opts->tz_set = 0;
@@ -1135,6 +1135,8 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat,
1135 opts->errors = FAT_ERRORS_RO; 1135 opts->errors = FAT_ERRORS_RO;
1136 *debug = 0; 1136 *debug = 0;
1137 1137
1138 opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) && is_vfat;
1139
1138 if (!options) 1140 if (!options)
1139 goto out; 1141 goto out;
1140 1142