@@ -138,7 +138,6 @@ enum {
138138 Opt_jqfmt_vfsold ,
139139 Opt_jqfmt_vfsv0 ,
140140 Opt_jqfmt_vfsv1 ,
141- Opt_whint ,
142141 Opt_alloc ,
143142 Opt_fsync ,
144143 Opt_test_dummy_encryption ,
@@ -214,7 +213,6 @@ static match_table_t f2fs_tokens = {
214213 {Opt_jqfmt_vfsold , "jqfmt=vfsold" },
215214 {Opt_jqfmt_vfsv0 , "jqfmt=vfsv0" },
216215 {Opt_jqfmt_vfsv1 , "jqfmt=vfsv1" },
217- {Opt_whint , "whint_mode=%s" },
218216 {Opt_alloc , "alloc_mode=%s" },
219217 {Opt_fsync , "fsync_mode=%s" },
220218 {Opt_test_dummy_encryption , "test_dummy_encryption=%s" },
@@ -975,22 +973,6 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
975973 f2fs_info (sbi , "quota operations not supported" );
976974 break ;
977975#endif
978- case Opt_whint :
979- name = match_strdup (& args [0 ]);
980- if (!name )
981- return - ENOMEM ;
982- if (!strcmp (name , "user-based" )) {
983- F2FS_OPTION (sbi ).whint_mode = WHINT_MODE_USER ;
984- } else if (!strcmp (name , "off" )) {
985- F2FS_OPTION (sbi ).whint_mode = WHINT_MODE_OFF ;
986- } else if (!strcmp (name , "fs-based" )) {
987- F2FS_OPTION (sbi ).whint_mode = WHINT_MODE_FS ;
988- } else {
989- kfree (name );
990- return - EINVAL ;
991- }
992- kfree (name );
993- break ;
994976 case Opt_alloc :
995977 name = match_strdup (& args [0 ]);
996978 if (!name )
@@ -1328,12 +1310,6 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
13281310 return - EINVAL ;
13291311 }
13301312
1331- /* Not pass down write hints if the number of active logs is lesser
1332- * than NR_CURSEG_PERSIST_TYPE.
1333- */
1334- if (F2FS_OPTION (sbi ).active_logs != NR_CURSEG_PERSIST_TYPE )
1335- F2FS_OPTION (sbi ).whint_mode = WHINT_MODE_OFF ;
1336-
13371313 if (f2fs_sb_has_readonly (sbi ) && !f2fs_readonly (sbi -> sb )) {
13381314 f2fs_err (sbi , "Allow to mount readonly mode only" );
13391315 return - EROFS ;
@@ -1978,10 +1954,6 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
19781954 seq_puts (seq , ",prjquota" );
19791955#endif
19801956 f2fs_show_quota_options (seq , sbi -> sb );
1981- if (F2FS_OPTION (sbi ).whint_mode == WHINT_MODE_USER )
1982- seq_printf (seq , ",whint_mode=%s" , "user-based" );
1983- else if (F2FS_OPTION (sbi ).whint_mode == WHINT_MODE_FS )
1984- seq_printf (seq , ",whint_mode=%s" , "fs-based" );
19851957
19861958 fscrypt_show_test_dummy_encryption (seq , ',' , sbi -> sb );
19871959
@@ -2033,7 +2005,6 @@ static void default_options(struct f2fs_sb_info *sbi)
20332005 F2FS_OPTION (sbi ).active_logs = NR_CURSEG_PERSIST_TYPE ;
20342006
20352007 F2FS_OPTION (sbi ).inline_xattr_size = DEFAULT_INLINE_XATTR_ADDRS ;
2036- F2FS_OPTION (sbi ).whint_mode = WHINT_MODE_OFF ;
20372008 F2FS_OPTION (sbi ).alloc_mode = ALLOC_MODE_DEFAULT ;
20382009 F2FS_OPTION (sbi ).fsync_mode = FSYNC_MODE_POSIX ;
20392010 F2FS_OPTION (sbi ).s_resuid = make_kuid (& init_user_ns , F2FS_DEF_RESUID );
@@ -2314,8 +2285,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
23142285 need_stop_gc = true;
23152286 }
23162287
2317- if (* flags & SB_RDONLY ||
2318- F2FS_OPTION (sbi ).whint_mode != org_mount_opt .whint_mode ) {
2288+ if (* flags & SB_RDONLY ) {
23192289 sync_inodes_sb (sb );
23202290
23212291 set_sbi_flag (sbi , SBI_IS_DIRTY );
0 commit comments