Lines Matching refs:vfsmount

97  * vfsmount lock may be taken for read to prevent changes to the
98 * vfsmount hash, ie. during mountpoint lookups or walking back
101 * It should be taken for write in all cases where the vfsmount
102 * tree or hash is modified or when a vfsmount structure is modified.
116 static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry)
170 * vfsmount lock must be held for read
184 * vfsmount lock must be held for write
275 bool __mnt_is_readonly(struct vfsmount *mnt)
315 static int mnt_is_readonly(struct vfsmount *mnt)
347 int mnt_get_write_access(struct vfsmount *m)
405 int mnt_want_write(struct vfsmount *m)
469 void mnt_put_write_access(struct vfsmount *mnt)
485 void mnt_drop_write(struct vfsmount *mnt)
634 int __legitimize_mnt(struct vfsmount *bastard, unsigned seq)
662 static bool legitimize_mnt(struct vfsmount *bastard, unsigned seq)
695 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
717 * return successively the root dentry and vfsmount of /dev/sda1, then
720 * lookup_mnt takes a reference to the found vfsmount.
722 struct vfsmount *lookup_mnt(const struct path *path)
725 struct vfsmount *m;
835 * vfsmount lock must be held. Additionally, the caller is responsible
852 /* called with namespace_lock and vfsmount lock */
864 * vfsmount lock must be held for write
875 * vfsmount lock must be held for write
886 * vfsmount lock must be held for write
902 * vfsmount lock must be held for write
910 * vfsmount lock must be held for write
1036 * vfsmount lock must be held for write
1096 struct vfsmount *vfs_create_mount(struct fs_context *fc)
1123 struct vfsmount *fc_mount(struct fs_context *fc)
1134 struct vfsmount *vfs_kern_mount(struct file_system_type *type,
1139 struct vfsmount *mnt;
1164 struct vfsmount *
1356 void mntput(struct vfsmount *mnt)
1368 struct vfsmount *mntget(struct vfsmount *mnt)
1381 void mnt_make_shortterm(struct vfsmount *mnt)
1417 struct vfsmount *mnt_clone_internal(const struct path *path)
1505 int may_umount_tree(struct vfsmount *m)
1542 int may_umount(struct vfsmount *mnt)
1720 * (2) the usage count == 1 [parent vfsmount] + 1 [sys_umount]
1760 * to rootfs. GC would eventually take care of the old vfsmount.
2036 struct vfsmount *collect_mounts(const struct path *path)
2054 void dissolve_on_fput(struct vfsmount *mnt)
2072 void drop_collected_mounts(struct vfsmount *mnt)
2099 * This creates a new vfsmount, which will be the clone of @path. The new mount
2105 struct vfsmount *clone_private_mount(const struct path *path)
2137 int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
2138 struct vfsmount *root)
2444 struct vfsmount *mnt = path->mnt;
2797 static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount *mnt)
3267 struct vfsmount *mnt;
3360 int finish_automount(struct vfsmount *m, const struct path *path)
3432 void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list)
3458 /* extract from the expiration list every vfsmount that matches the
3460 * - only referenced by its parent vfsmount
3764 struct vfsmount *rootmnt = NULL, *pwdmnt = NULL;
3839 struct dentry *mount_subtree(struct vfsmount *m, const char *name)
3864 /* trade a vfsmount reference for active sb one */
4292 struct vfsmount *m = &mnt->mnt;
4704 static struct vfsmount *lookup_mnt_in_ns(u64 id, struct mnt_namespace *ns)
4717 struct vfsmount *mnt;
4724 static u64 mnt_to_attr_flags(struct vfsmount *mnt)
4830 struct vfsmount *mnt = s->mnt;
5004 struct vfsmount *mnt;
5135 struct vfsmount *mnt;
5205 struct vfsmount *kern_mount(struct file_system_type *type)
5207 struct vfsmount *mnt;
5220 void kern_unmount(struct vfsmount *mnt)
5231 void kern_unmount_array(struct vfsmount *mnt[], unsigned int num)
5243 bool our_mnt(struct vfsmount *mnt)
5359 bool mnt_may_suid(struct vfsmount *mnt)