f2fs: keep lazytime on remount
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 28 Sep 2018 07:24:39 +0000 (00:24 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Oct 2018 18:23:39 +0000 (11:23 -0700)
This patch fixes losing lazytime when remounting f2fs.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 83509f8e640d90c00e00e6ed7e92d1dc23bcd388..fe840745461bdd33a1eb1c592b78a97c50c63ca7 100644 (file)
@@ -1550,6 +1550,7 @@ skip:
                (test_opt(sbi, POSIX_ACL) ? MS_POSIXACL : 0);
 
        limit_reserve_root(sbi);
+       *flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
        return 0;
 restore_gc:
        if (need_restart_gc) {