Home
last modified time | relevance | path

Searched refs:newmnt (Results 1 – 3 of 3) sorted by relevance

/fs/afs/
Dmntpt.c215 struct vfsmount *newmnt; in afs_mntpt_follow_link() local
228 newmnt = afs_mntpt_do_automount(nd->path.dentry); in afs_mntpt_follow_link()
229 if (IS_ERR(newmnt)) { in afs_mntpt_follow_link()
231 return (void *)newmnt; in afs_mntpt_follow_link()
234 mntget(newmnt); in afs_mntpt_follow_link()
235 err = do_add_mount(newmnt, &nd->path, MNT_SHRINKABLE, &afs_vfsmounts); in afs_mntpt_follow_link()
239 nd->path.mnt = newmnt; in afs_mntpt_follow_link()
240 nd->path.dentry = dget(newmnt->mnt_root); in afs_mntpt_follow_link()
251 mntput(newmnt); in afs_mntpt_follow_link()
/fs/cifs/
Dcifs_dfs_ref.c263 static int add_mount_helper(struct vfsmount *newmnt, struct nameidata *nd, in add_mount_helper() argument
269 mntget(newmnt); in add_mount_helper()
270 err = do_add_mount(newmnt, &nd->path, nd->path.mnt->mnt_flags, mntlist); in add_mount_helper()
274 nd->path.mnt = newmnt; in add_mount_helper()
275 nd->path.dentry = dget(newmnt->mnt_root); in add_mount_helper()
286 mntput(newmnt); in add_mount_helper()
/fs/
Dnamespace.c1676 int do_add_mount(struct vfsmount *newmnt, struct path *path, in do_add_mount() argument
1692 if (path->mnt->mnt_sb == newmnt->mnt_sb && in do_add_mount()
1697 if (S_ISLNK(newmnt->mnt_root->d_inode->i_mode)) in do_add_mount()
1700 newmnt->mnt_flags = mnt_flags; in do_add_mount()
1701 if ((err = graft_tree(newmnt, path))) in do_add_mount()
1705 list_add_tail(&newmnt->mnt_expire, fslist); in do_add_mount()
1712 mntput(newmnt); in do_add_mount()