From: Al Viro Date: Sun, 24 Aug 2025 18:18:09 +0000 (-0400) Subject: path_mount(): constify struct path argument X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8ec7ee2e0be710317bbfeeae8c16a3834e78ab9c;p=users%2Fhch%2Fmisc.git path_mount(): constify struct path argument now it finally can be done. Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/internal.h b/fs/internal.h index 38e8aab27bbd..fe88563b4822 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -84,7 +84,7 @@ void mnt_put_write_access_file(struct file *file); extern void dissolve_on_fput(struct vfsmount *); extern bool may_mount(void); -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); int path_umount(struct path *path, int flags); 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;