@@ -2322,6 +2322,9 @@ static int do_remount(struct path *path, int ms_flags, int sb_flags,
if (err)
return err;
+ if (mnt_flags & MS_LAZYTIME)
+ sb_flags |= MS_LAZYTIME;
+
down_write(&sb->s_umount);
if (ms_flags & MS_BIND)
err = change_mount_flags(path->mnt, ms_flags);
@@ -2809,6 +2812,8 @@ long do_mount(const char *dev_name, const char __user *dir_name,
mnt_flags &= ~(MNT_RELATIME | MNT_NOATIME);
if (flags & SB_RDONLY)
mnt_flags |= MNT_READONLY;
+ if (flags & MS_LAZYTIME)
+ mnt_flags |= MS_LAZYTIME;
/* The default atime for remount is preservation */
if ((flags & MS_REMOUNT) &&