Skip to content

Commit 1e2d846

Browse files
author
Al Viro
committed
constify struct path argument of finish_automount()/do_add_mount()
Signed-off-by: Al Viro <[email protected]>
1 parent c51acdb commit 1e2d846

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int do_linkat(int olddfd, struct filename *old, int newdfd,
7474
* namespace.c
7575
*/
7676
extern struct vfsmount *lookup_mnt(const struct path *);
77-
extern int finish_automount(struct vfsmount *, struct path *);
77+
extern int finish_automount(struct vfsmount *, const struct path *);
7878

7979
extern int sb_prepare_remount_readonly(struct super_block *);
8080

fs/namespace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,7 +2876,7 @@ static int do_move_mount_old(struct path *path, const char *old_name)
28762876
* add a mount into a namespace's mount tree
28772877
*/
28782878
static int do_add_mount(struct mount *newmnt, struct mountpoint *mp,
2879-
struct path *path, int mnt_flags)
2879+
const struct path *path, int mnt_flags)
28802880
{
28812881
struct mount *parent = real_mount(path->mnt);
28822882

@@ -2999,7 +2999,7 @@ static int do_new_mount(struct path *path, const char *fstype, int sb_flags,
29992999
return err;
30003000
}
30013001

3002-
int finish_automount(struct vfsmount *m, struct path *path)
3002+
int finish_automount(struct vfsmount *m, const struct path *path)
30033003
{
30043004
struct dentry *dentry = path->dentry;
30053005
struct mountpoint *mp;

0 commit comments

Comments
 (0)