Skip to content

Commit 54f43a1

Browse files
Eric SandeenJaegeuk Kim
authored andcommitted
f2fs: remove unreachable lazytime mount option parsing
The lazytime/nolazytime options are now handled in the VFS, and are never seen in filesystem parsers, so remove handling of these options from f2fs. Note: when lazytime support was added in 6d94c74 it made lazytime the default in default_options() - as a result, lazytime cannot be disabled (because Opt_nolazytime is never seen in f2fs parsing). If lazytime is desired to be configurable, and default off is OK, default_options() could be updated to stop setting it by default and allow mount option control. Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent c82bc1a commit 54f43a1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

fs/f2fs/super.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ enum {
151151
Opt_mode,
152152
Opt_fault_injection,
153153
Opt_fault_type,
154-
Opt_lazytime,
155-
Opt_nolazytime,
156154
Opt_quota,
157155
Opt_noquota,
158156
Opt_usrquota,
@@ -229,8 +227,6 @@ static match_table_t f2fs_tokens = {
229227
{Opt_mode, "mode=%s"},
230228
{Opt_fault_injection, "fault_injection=%u"},
231229
{Opt_fault_type, "fault_type=%u"},
232-
{Opt_lazytime, "lazytime"},
233-
{Opt_nolazytime, "nolazytime"},
234230
{Opt_quota, "quota"},
235231
{Opt_noquota, "noquota"},
236232
{Opt_usrquota, "usrquota"},
@@ -918,12 +914,6 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
918914
f2fs_info(sbi, "fault_type options not supported");
919915
break;
920916
#endif
921-
case Opt_lazytime:
922-
sb->s_flags |= SB_LAZYTIME;
923-
break;
924-
case Opt_nolazytime:
925-
sb->s_flags &= ~SB_LAZYTIME;
926-
break;
927917
#ifdef CONFIG_QUOTA
928918
case Opt_quota:
929919
case Opt_usrquota:

0 commit comments

Comments
 (0)