VFS: Handle lazytime in do_mount()
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Wed, 11 Oct 2017 05:01:31 +0000 (07:01 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 Dec 2017 01:16:33 +0000 (20:16 -0500)
Since commit e462ec50cb5fa ("VFS: Differentiate mount flags (MS_*) from
internal superblock flags") the lazytime mount option doesn't get passed
on anymore.

Fix the issue by handling the option in do_mount().

Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c

index e158ec6..9d1374a 100644 (file)
@@ -2826,6 +2826,7 @@ long do_mount(const char *dev_name, const char __user *dir_name,
                            SB_DIRSYNC |
                            SB_SILENT |
                            SB_POSIXACL |
+                           SB_LAZYTIME |
                            SB_I_VERSION);
 
        if (flags & MS_REMOUNT)