From: Jaegeuk Kim Date: Fri, 28 Sep 2018 07:24:39 +0000 (-0700) Subject: f2fs: keep lazytime on remount X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6096^2~29 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=095680f24f2673d860fd1d3d2f54f40f330b4c63;p=linux.git f2fs: keep lazytime on remount This patch fixes losing lazytime when remounting f2fs. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- 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) {