]> www.infradead.org Git - users/hch/misc.git/commitdiff
path_mount(): constify struct path argument
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Aug 2025 18:18:09 +0000 (14:18 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:26:44 +0000 (21:26 -0400)
now it finally can be done.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/internal.h
fs/namespace.c

index 38e8aab27bbda37995ac377b1d4c3379a614019d..fe88563b48221f208838ddc2688335c0c4febfbf 100644 (file)
@@ -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);
 
index dbaa80bfc89a17b10ba40b2ffa36902db9fc4d98..37afd82af6287b911119ea650cbe2a2561eb93b9 100644 (file)
@@ -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;