Lines Matching defs:mountpoint
94 * vfsmount hash, ie. during mountpoint lookups or walking back
671 * @dentry: mountpoint
681 * has another mount @n mounted at the same mountpoint then the source
747 * __is_local_mountpoint - Test to see if dentry is a mountpoint in the
752 * dealing with a mountpoint of some kind, walk through all of the
754 * is a mountpoint.
782 static struct mountpoint *lookup_mountpoint(struct dentry *dentry)
785 struct mountpoint *mp;
796 static struct mountpoint *get_mountpoint(struct dentry *dentry)
798 struct mountpoint *mp, *new = NULL;
805 mountpoint:
814 new = kmalloc(sizeof(struct mountpoint), GFP_KERNEL);
824 goto mountpoint;
826 /* The dentry is not available as a mountpoint? */
831 /* Add the new mountpoint to the hash table */
850 static void __put_mountpoint(struct mountpoint *mp, struct list_head *list)
865 static void put_mountpoint(struct mountpoint *mp)
900 static struct mountpoint *unhash_mnt(struct mount *mnt)
902 struct mountpoint *mp;
925 struct mountpoint *mp,
941 * @new_mp: the new mountpoint of @top_mnt on @new_parent
943 * Remove @top_mnt from its current mountpoint @top_mnt->mnt_mp and
946 * mountpoint of @top_mnt.
953 struct mountpoint *new_mp)
956 struct mountpoint *old_top_mp = top_mnt->mnt_mp;
975 * @mp: the new mountpoint
982 * mountpoint and mount it on @mp on @parent, and mount @parent on the
983 * old parent and old mountpoint of @mnt. Finally, attach @parent to
993 struct mountpoint *mp, bool beneath)
1008 void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt)
1010 struct mountpoint *old_mp = mnt->mnt_mp;
1152 vfs_submount(const struct dentry *mountpoint, struct file_system_type *type,
1159 if (mountpoint->d_sb->s_user_ns != &init_user_ns)
1382 * checks if the passed in path is a mountpoint rather than the dentry
1717 * Allow userspace to request a mountpoint be expired rather than
1807 * to an existing mountpoint, and wind up leaking the mount.
1815 struct mountpoint *mp;
2236 * @dest_mp: the mountpoint @source_mnt will be mounted at
2301 struct mountpoint *dest_mp,
2307 struct mountpoint *smp;
2314 * Preallocate a mountpoint in case the new mounts need to be
2315 * mounted beneath mounts on the same mountpoint.
2403 * do_lock_mount - lock mount and mountpoint
2408 * the initial @path->{mnt,dentry} is a mountpoint lookup the first
2413 * against concurrent removal of the new mountpoint from another mount
2416 * If @beneath is requested, acquire inode_lock() on @mnt's mountpoint
2424 * unmounted or moved from its current mountpoint in between dropping
2433 * Return: Either the target mountpoint on the top mount or the top
2434 * mount's mountpoint.
2436 static struct mountpoint *do_lock_mount(struct path *path, bool beneath)
2440 struct mountpoint *mp = ERR_PTR(-ENOENT);
2494 static inline struct mountpoint *lock_mount(struct path *path)
2499 static void unlock_mount(struct mountpoint *where)
2511 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp)
2541 * recursively change the type of the mountpoint.
2607 struct mountpoint *mp;
2792 static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount *mnt)
2800 char *mntpath = buf ? d_path(mountpoint, buf, PAGE_SIZE) : ERR_PTR(-ENOMEM);
2814 * Handle reconfiguration of the mountpoint only without alteration of the
3012 * @path->mnt with @path->dentry as mountpoint.
3038 * that the caller could reveal the underlying mountpoint.
3050 const struct mountpoint *mp)
3116 struct mountpoint *mp, *old_mp;
3135 /* The mountpoint must be in our namespace. */
3225 static int do_add_mount(struct mount *newmnt, struct mountpoint *mp,
3236 /* ... and for those we'd better have mountpoint still alive */
3258 static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint,
3262 struct mountpoint *mp;
3281 mnt_warn_timestamp_expiry(mountpoint, mnt);
3283 mp = lock_mount(mountpoint);
3288 error = do_add_mount(real_mount(mnt), mp, mountpoint, mnt_flags);
3357 struct mountpoint *mp;
3380 * that overmounts our mountpoint to be means "quitely drop what we've
3478 * search the list of submounts for a given mountpoint, and move any
3523 * submounts of a specific parent mountpoint
3532 /* extract submounts of 'mountpoint' from the expiration list */
3627 /* Separate the per-mountpoint flags */
4163 * file system may be mounted on put_old. After all, new_root is a mountpoint.
4173 * /nfs/my_root where /nfs is the mount point. It must be a mountpoint,
4182 struct mountpoint *old_mp, *root_mp;
4230 goto out4; /* not a mountpoint */
4234 goto out4; /* not a mountpoint */
4245 root_mp = unhash_mnt(root_mnt); /* we'll need its mountpoint */