diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-06-19 02:27:57 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-01-31 03:16:48 +0100 |
commit | 1e2d84644d1ce754d48c58a6184e1dd9ab573f0c (patch) | |
tree | e805c2c54060c842936d919892e60faeef565b8c /fs | |
parent | fs: Remove FIXME comment in generic_write_checks() (diff) | |
download | linux-1e2d84644d1ce754d48c58a6184e1dd9ab573f0c.tar.xz linux-1e2d84644d1ce754d48c58a6184e1dd9ab573f0c.zip |
constify struct path argument of finish_automount()/do_add_mount()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/internal.h | 2 | ||||
-rw-r--r-- | fs/namespace.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/internal.h b/fs/internal.h index 8590c973c2f4..fe0a44c4ab88 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -74,7 +74,7 @@ int do_linkat(int olddfd, struct filename *old, int newdfd, * namespace.c */ extern struct vfsmount *lookup_mnt(const struct path *); -extern int finish_automount(struct vfsmount *, struct path *); +extern int finish_automount(struct vfsmount *, const struct path *); extern int sb_prepare_remount_readonly(struct super_block *); diff --git a/fs/namespace.c b/fs/namespace.c index 40b994a29e90..13d025a9ecf5 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2876,7 +2876,7 @@ static int do_move_mount_old(struct path *path, const char *old_name) * add a mount into a namespace's mount tree */ static int do_add_mount(struct mount *newmnt, struct mountpoint *mp, - struct path *path, int mnt_flags) + const struct path *path, int mnt_flags) { struct mount *parent = real_mount(path->mnt); @@ -2999,7 +2999,7 @@ static int do_new_mount(struct path *path, const char *fstype, int sb_flags, return err; } -int finish_automount(struct vfsmount *m, struct path *path) +int finish_automount(struct vfsmount *m, const struct path *path) { struct dentry *dentry = path->dentry; struct mountpoint *mp; |