summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Trippelsdorf <markus@trippelsdorf.de>2017-10-11 07:01:31 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-12-09 20:16:33 -0500
commitd7ee946942bdd12394809305e3df05aa4c8b7b8f (patch)
tree43a95d48ac37832dfaabf839cbbe26d2f9dac035
parentca0168e8a77cf833f8c9ac1d26a3a4012bab4f72 (diff)
downloadlinux-sh-d7ee946942bdd12394809305e3df05aa4c8b7b8f.tar.gz
VFS: Handle lazytime in do_mount()
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>
-rw-r--r--fs/namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index e158ec6b527b..9d1374ab6e06 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -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)