mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
constify struct path argument of finish_automount()/do_add_mount()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
c51acdb78f
commit
1e2d84644d
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ int do_linkat(int olddfd, struct filename *old, int newdfd,
|
||||||
* namespace.c
|
* namespace.c
|
||||||
*/
|
*/
|
||||||
extern struct vfsmount *lookup_mnt(const struct path *);
|
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 *);
|
extern int sb_prepare_remount_readonly(struct super_block *);
|
||||||
|
|
||||||
|
|
|
@ -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
|
* add a mount into a namespace's mount tree
|
||||||
*/
|
*/
|
||||||
static int do_add_mount(struct mount *newmnt, struct mountpoint *mp,
|
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);
|
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;
|
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 dentry *dentry = path->dentry;
|
||||||
struct mountpoint *mp;
|
struct mountpoint *mp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue