[Devel] [PATCH RH7 06/14] VFS: Handle lazytime in do_mount()
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Thu Apr 13 13:47:16 MSK 2023
From: Markus Trippelsdorf <markus at trippelsdorf.de>
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 at redhat.com>
Signed-off-by: Markus Trippelsdorf <markus at trippelsdorf.de>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
(cherry picked from commit d7ee946942bdd12394809305e3df05aa4c8b7b8f)
https://jira.sw.ru/browse/PSBM-144416
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
fs/namespace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/namespace.c b/fs/namespace.c
index b60e2eab0d85..33ccc11cf327 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3587,6 +3587,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)
--
2.39.2
More information about the Devel
mailing list