summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-08-24 14:18:09 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2025-09-15 21:26:44 -0400
commit8ec7ee2e0be710317bbfeeae8c16a3834e78ab9c (patch)
tree72481cdaaf3a37c584a70fe8a142d41d33820557 /fs/namespace.c
parenta8be822f61934b493bc1c8ed98aa3326b7d176df (diff)
path_mount(): constify struct path argument
now it finally can be done. Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index dbaa80bfc89a..37afd82af628 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -4012,7 +4012,7 @@ static char *copy_mount_string(const void __user *data)
* Therefore, if this magic number is present, it carries no information
* and must be discarded.
*/
-int path_mount(const char *dev_name, struct path *path,
+int path_mount(const char *dev_name, const struct path *path,
const char *type_page, unsigned long flags, void *data_page)
{
unsigned int mnt_flags = 0, sb_flags;