Skip to content

Commit 095680f

Browse files
author
Jaegeuk Kim
committed
f2fs: keep lazytime on remount
This patch fixes losing lazytime when remounting f2fs. Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 89d13c3 commit 095680f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
15501550
(test_opt(sbi, POSIX_ACL) ? SB_POSIXACL : 0);
15511551

15521552
limit_reserve_root(sbi);
1553+
*flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
15531554
return 0;
15541555
restore_gc:
15551556
if (need_restart_gc) {

0 commit comments

Comments
 (0)