Skip to content

Commit 8ec7ee2

Browse files
author
Al Viro
committed
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>
1 parent a8be822 commit 8ec7ee2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fs/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void mnt_put_write_access_file(struct file *file);
8484
extern void dissolve_on_fput(struct vfsmount *);
8585
extern bool may_mount(void);
8686

87-
int path_mount(const char *dev_name, struct path *path,
87+
int path_mount(const char *dev_name, const struct path *path,
8888
const char *type_page, unsigned long flags, void *data_page);
8989
int path_umount(struct path *path, int flags);
9090

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4012,7 +4012,7 @@ static char *copy_mount_string(const void __user *data)
40124012
* Therefore, if this magic number is present, it carries no information
40134013
* and must be discarded.
40144014
*/
4015-
int path_mount(const char *dev_name, struct path *path,
4015+
int path_mount(const char *dev_name, const struct path *path,
40164016
const char *type_page, unsigned long flags, void *data_page)
40174017
{
40184018
unsigned int mnt_flags = 0, sb_flags;

0 commit comments

Comments
 (0)