Skip to content

Commit acff940

Browse files
author
Jaegeuk Kim
committed
Revert "f2fs: remove unreachable lazytime mount option parsing"
This reverts commit 54f43a1. The above commit broke the lazytime mount, given mount("/dev/vdb", "/mnt/test", "f2fs", 0, "lazytime"); CC: [email protected] # 6.11+ Signed-off-by: Daniel Rosenberg <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 26e6f59 commit acff940

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fs/f2fs/super.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ enum {
150150
Opt_mode,
151151
Opt_fault_injection,
152152
Opt_fault_type,
153+
Opt_lazytime,
154+
Opt_nolazytime,
153155
Opt_quota,
154156
Opt_noquota,
155157
Opt_usrquota,
@@ -226,6 +228,8 @@ static match_table_t f2fs_tokens = {
226228
{Opt_mode, "mode=%s"},
227229
{Opt_fault_injection, "fault_injection=%u"},
228230
{Opt_fault_type, "fault_type=%u"},
231+
{Opt_lazytime, "lazytime"},
232+
{Opt_nolazytime, "nolazytime"},
229233
{Opt_quota, "quota"},
230234
{Opt_noquota, "noquota"},
231235
{Opt_usrquota, "usrquota"},
@@ -922,6 +926,12 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
922926
f2fs_info(sbi, "fault_type options not supported");
923927
break;
924928
#endif
929+
case Opt_lazytime:
930+
sb->s_flags |= SB_LAZYTIME;
931+
break;
932+
case Opt_nolazytime:
933+
sb->s_flags &= ~SB_LAZYTIME;
934+
break;
925935
#ifdef CONFIG_QUOTA
926936
case Opt_quota:
927937
case Opt_usrquota:

0 commit comments

Comments
 (0)