mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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>
This commit is contained in:
parent
a8be822f61
commit
8ec7ee2e0b
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user