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 int __legitimize_mnt(struct vfsmount *bastard, unsigned seq)
612 bool legitimize_mnt(struct vfsmount *bastard, unsigned seq)
626 * find the first mount at @dentry on vfsmount @mnt.
629 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
641 * find the last mount at @dentry on vfsmount @mnt.
644 struct mount *__lookup_mnt_last(struct vfsmount *mnt, struct dentry *dentry)
673 * return successively the root dentry and vfsmount of /dev/sda1, then
676 * lookup_mnt takes a reference to the found vfsmount.
678 struct vfsmount *lookup_mnt(struct path *path)
681 struct vfsmount *m;
788 * vfsmount lock must be held for write
799 * vfsmount lock must be held for write
810 * vfsmount lock must be held for write
824 * vfsmount lock must be held for write
834 * vfsmount lock must be held for write
844 * vfsmount lock must be held for write
859 * vfsmount lock must be held for write
885 * vfsmount lock must be held for write
932 struct vfsmount *
1136 void mntput(struct vfsmount *mnt)
1148 struct vfsmount *mntget(struct vfsmount *mnt)
1156 struct vfsmount *mnt_clone_internal(struct path *path)
1285 int may_umount_tree(struct vfsmount *m)
1322 int may_umount(struct vfsmount *mnt)
1463 * (2) the usage count == 1 [parent vfsmount] + 1 [sys_umount]
1503 * to rootfs. GC would eventually take care of the old vfsmount.
1741 struct vfsmount *collect_mounts(struct path *path)
1756 void drop_collected_mounts(struct vfsmount *mnt)
1768 * This creates a new vfsmount, which will be the clone of @path. The new will
1774 struct vfsmount *clone_private_mount(struct path *path)
1792 int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
1793 struct vfsmount *root)
1953 struct vfsmount *mnt;
2133 static int change_mount_flags(struct vfsmount *mnt, int ms_flags)
2303 static struct vfsmount *fs_set_subtype(struct vfsmount *mnt, const char *fstype)
2381 struct vfsmount *mnt;
2424 int finish_automount(struct vfsmount *m, struct path *path)
2459 void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list)
2485 /* extract from the expiration list every vfsmount that matches the
2487 * - only referenced by its parent vfsmount
2776 struct vfsmount *rootmnt = NULL, *pwdmnt = NULL;
2849 static struct mnt_namespace *create_mnt_ns(struct vfsmount *m)
2863 struct dentry *mount_subtree(struct vfsmount *mnt, const char *name)
2882 /* trade a vfsmount reference for active sb one */
3077 struct vfsmount *mnt;
3153 struct vfsmount *kern_mount_data(struct file_system_type *type, void *data)
3155 struct vfsmount *mnt;
3168 void kern_unmount(struct vfsmount *mnt)
3179 bool our_mnt(struct vfsmount *mnt)