summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-09-28 00:24:39 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2018-09-30 16:50:46 -0700
commit095680f24f2673d860fd1d3d2f54f40f330b4c63 (patch)
treee3fada48ebffa551d205d2af4147d83e0064b67b /fs/f2fs
parent89d13c38501df730cbb2e02c4499da1b5187119d (diff)
f2fs: keep lazytime on remount
This patch fixes losing lazytime when remounting f2fs. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index c47b1ef2685a..218695e44bd4 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1550,6 +1550,7 @@ skip:
(test_opt(sbi, POSIX_ACL) ? SB_POSIXACL : 0);
limit_reserve_root(sbi);
+ *flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
return 0;
restore_gc:
if (need_restart_gc) {