Skip to contentSkip to conversation

VFS: Handle lazytime in do_mount()

PATCH In review Markus Trippelsdorf 2 participants 2 messages Oct 11, 2017 – Nov 17, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 fs/namespace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/namespace.c +2 -1
index 54059b142d6b..b633838b8f02 100644
@@ -2823,7 +2823,8 @@ long do_mount(const char *dev_name, const char __user *dir_name,
 			    SB_MANDLOCK |
 			    SB_DIRSYNC |
 			    SB_SILENT |
-			    SB_POSIXACL);
+			    SB_POSIXACL |
+			    SB_LAZYTIME);
 
 	if (flags & MS_REMOUNT)
 		retval = do_remount(&path, flags, sb_flags, mnt_flags,
Signature · 1 line
Markus
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Markus Trippelsdorf

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().

Quoted 19 lines
---
 fs/namespace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/namespace.c +2 -1
index 54059b142d6b..b633838b8f02 100644
@@ -2823,7 +2823,8 @@ long do_mount(const char *dev_name, const char __user *dir_name,
 			    SB_MANDLOCK |
 			    SB_DIRSYNC |
 			    SB_SILENT |
-			    SB_POSIXACL);
+			    SB_POSIXACL |
+			    SB_LAZYTIME);
 
 	if (flags & MS_REMOUNT)
 		retval = do_remount(&path, flags, sb_flags, mnt_flags,
Signature · 1 line
Goldwyn