Lines Matching refs:vfsmount
72 * vfsmount lock may be taken for read to prevent changes to the
73 * vfsmount hash, ie. during mountpoint lookups or walking back
76 * It should be taken for write in all cases where the vfsmount
77 * tree or hash is modified or when a vfsmount structure is modified.
81 static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry)
161 * vfsmount lock must be held for read
175 * vfsmount lock must be held for write
274 int __mnt_is_readonly(struct vfsmount *mnt)
318 static int mnt_is_readonly(struct vfsmount *mnt)
343 int __mnt_want_write(struct vfsmount *m)
382 int mnt_want_write(struct vfsmount *m)
406 int mnt_clone_write(struct vfsmount *mnt)
460 void __mnt_drop_write(struct vfsmount *mnt)
475 void mnt_drop_write(struct vfsmount *mnt)
593 bool legitimize_mnt(struct vfsmount *bastard, unsigned seq)
615 * find the first mount at @dentry on vfsmount @mnt.
618 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
630 * find the last mount at @dentry on vfsmount @mnt.
633 struct mount *__lookup_mnt_last(struct vfsmount *mnt, struct dentry *dentry)
662 * return successively the root dentry and vfsmount of /dev/sda1, then
665 * lookup_mnt takes a reference to the found vfsmount.
667 struct vfsmount *lookup_mnt(struct path *path)
670 struct vfsmount *m;
777 * vfsmount lock must be held for write
788 * vfsmount lock must be held for write
799 * vfsmount lock must be held for write
813 * vfsmount lock must be held for write
823 * vfsmount lock must be held for write
833 * vfsmount lock must be held for write
848 * vfsmount lock must be held for write
874 * vfsmount lock must be held for write
921 struct vfsmount *
1125 void mntput(struct vfsmount *mnt)
1137 struct vfsmount *mntget(struct vfsmount *mnt)
1145 struct vfsmount *mnt_clone_internal(struct path *path)
1274 int may_umount_tree(struct vfsmount *m)
1311 int may_umount(struct vfsmount *mnt)
1452 * (2) the usage count == 1 [parent vfsmount] + 1 [sys_umount]
1492 * to rootfs. GC would eventually take care of the old vfsmount.
1730 struct vfsmount *collect_mounts(struct path *path)
1745 void drop_collected_mounts(struct vfsmount *mnt)
1757 * This creates a new vfsmount, which will be the clone of @path. The new will
1763 struct vfsmount *clone_private_mount(struct path *path)
1781 int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
1782 struct vfsmount *root)
1942 struct vfsmount *mnt;
2122 static int change_mount_flags(struct vfsmount *mnt, int ms_flags)
2292 static struct vfsmount *fs_set_subtype(struct vfsmount *mnt, const char *fstype)
2370 struct vfsmount *mnt;
2415 int finish_automount(struct vfsmount *m, struct path *path)
2450 void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list)
2476 /* extract from the expiration list every vfsmount that matches the
2478 * - only referenced by its parent vfsmount
2767 struct vfsmount *rootmnt = NULL, *pwdmnt = NULL;
2840 static struct mnt_namespace *create_mnt_ns(struct vfsmount *m)
2854 struct dentry *mount_subtree(struct vfsmount *mnt, const char *name)
2873 /* trade a vfsmount reference for active sb one */
3068 struct vfsmount *mnt;
3144 struct vfsmount *kern_mount_data(struct file_system_type *type, void *data)
3146 struct vfsmount *mnt;
3159 void kern_unmount(struct vfsmount *mnt)
3170 bool our_mnt(struct vfsmount *mnt)