Lines Matching refs:mount

100 static int mnt_alloc_id(struct mount *mnt)  in mnt_alloc_id()
117 static void mnt_free_id(struct mount *mnt) in mnt_free_id()
132 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id()
151 void mnt_release_group_id(struct mount *mnt) in mnt_release_group_id()
163 static inline void mnt_add_count(struct mount *mnt, int n) in mnt_add_count()
177 unsigned int mnt_get_count(struct mount *mnt) in mnt_get_count()
195 struct mount *m = container_of(p, struct mount, mnt_umount); in drop_mountpoint()
201 static struct mount *alloc_vfsmnt(const char *name) in alloc_vfsmnt()
203 struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt()
284 static inline void mnt_inc_writers(struct mount *mnt) in mnt_inc_writers()
293 static inline void mnt_dec_writers(struct mount *mnt) in mnt_dec_writers()
302 static unsigned int mnt_get_writers(struct mount *mnt) in mnt_get_writers()
345 struct mount *mnt = real_mount(m); in __mnt_want_write()
493 static int mnt_make_readonly(struct mount *mnt) in mnt_make_readonly()
535 static void __mnt_unmake_readonly(struct mount *mnt) in __mnt_unmake_readonly()
544 struct mount *mnt; in sb_prepare_remount_readonly()
578 static void free_vfsmnt(struct mount *mnt) in free_vfsmnt()
589 free_vfsmnt(container_of(head, struct mount, mnt_rcu)); in delayed_free_vfsmnt()
595 struct mount *mnt; in __legitimize_mnt()
629 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) in __lookup_mnt()
632 struct mount *p; in __lookup_mnt()
644 struct mount *__lookup_mnt_last(struct vfsmount *mnt, struct dentry *dentry) in __lookup_mnt_last()
646 struct mount *p, *res = NULL; in __lookup_mnt_last()
680 struct mount *child_mnt; in lookup_mnt()
712 struct mount *mnt; in __is_local_mountpoint()
782 static inline int check_mnt(struct mount *mnt) in check_mnt()
812 static void unhash_mnt(struct mount *mnt) in unhash_mnt()
826 static void detach_mnt(struct mount *mnt, struct path *old_path) in detach_mnt()
836 static void umount_mnt(struct mount *mnt) in umount_mnt()
846 void mnt_set_mountpoint(struct mount *mnt, in mnt_set_mountpoint()
848 struct mount *child_mnt) in mnt_set_mountpoint()
861 static void attach_mnt(struct mount *mnt, in attach_mnt()
862 struct mount *parent, in attach_mnt()
870 static void attach_shadowed(struct mount *mnt, in attach_shadowed()
871 struct mount *parent, in attach_shadowed()
872 struct mount *shadows) in attach_shadowed()
887 static void commit_tree(struct mount *mnt, struct mount *shadows) in commit_tree()
889 struct mount *parent = mnt->mnt_parent; in commit_tree()
890 struct mount *m; in commit_tree()
906 static struct mount *next_mnt(struct mount *p, struct mount *root) in next_mnt()
919 return list_entry(next, struct mount, mnt_child); in next_mnt()
922 static struct mount *skip_mnt_tree(struct mount *p) in skip_mnt_tree()
926 p = list_entry(prev, struct mount, mnt_child); in skip_mnt_tree()
935 struct mount *mnt; in vfs_kern_mount()
966 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt()
970 struct mount *mnt; in clone_mnt()
1050 static void cleanup_mnt(struct mount *mnt) in cleanup_mnt()
1074 cleanup_mnt(container_of(head, struct mount, mnt_rcu)); in __cleanup_mnt()
1085 cleanup_mnt(llist_entry(node, struct mount, mnt_llist)); in delayed_mntput()
1090 static void mntput_no_expire(struct mount *mnt) in mntput_no_expire()
1115 struct mount *p, *tmp; in mntput_no_expire()
1139 struct mount *m = real_mount(mnt); in mntput()
1158 struct mount *p; in mnt_clone_internal()
1265 struct mount *r = list_entry(v, struct mount, mnt_list); in m_show()
1287 struct mount *mnt = real_mount(m); in may_umount_tree()
1290 struct mount *p; in may_umount_tree()
1365 static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how) in disconnect_mount()
1398 static void umount_tree(struct mount *mnt, enum umount_tree_flags how) in umount_tree()
1401 struct mount *p; in umount_tree()
1423 p = list_first_entry(&tmp_list, struct mount, mnt_list); in umount_tree()
1448 static void shrink_submounts(struct mount *mnt);
1450 static int do_umount(struct mount *mnt, int flags) in do_umount()
1557 struct mount *mnt; in __detach_mounts()
1566 mnt = hlist_entry(mp->m_list.first, struct mount, mnt_mp_list); in __detach_mounts()
1598 struct mount *mnt; in SYSCALL_DEFINE2()
1672 struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, in copy_tree()
1675 struct mount *res, *p, *q, *r, *parent; in copy_tree()
1691 struct mount *s; in copy_tree()
1696 struct mount *t = NULL; in copy_tree()
1721 struct mount, mnt_child); in copy_tree()
1743 struct mount *tree; in collect_mounts()
1776 struct mount *old_mnt = real_mount(path->mnt); in clone_private_mount()
1777 struct mount *new_mnt; in clone_private_mount()
1795 struct mount *mnt; in iterate_mounts()
1807 static void cleanup_group_ids(struct mount *mnt, struct mount *end) in cleanup_group_ids()
1809 struct mount *p; in cleanup_group_ids()
1817 static int invent_group_ids(struct mount *mnt, bool recurse) in invent_group_ids()
1819 struct mount *p; in invent_group_ids()
1897 static int attach_recursive_mnt(struct mount *source_mnt, in attach_recursive_mnt()
1898 struct mount *dest_mnt, in attach_recursive_mnt()
1903 struct mount *child, *p; in attach_recursive_mnt()
1930 struct mount *q; in attach_recursive_mnt()
1942 child = hlist_entry(tree_list.first, struct mount, mnt_hash); in attach_recursive_mnt()
1990 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp) in graft_tree()
2024 struct mount *m; in do_change_type()
2025 struct mount *mnt = real_mount(path->mnt); in do_change_type()
2054 static bool has_locked_children(struct mount *mnt, struct dentry *dentry) in has_locked_children()
2056 struct mount *child; in has_locked_children()
2074 struct mount *mnt = NULL, *old, *parent; in do_loopback()
2160 struct mount *mnt = real_mount(path->mnt); in do_remount()
2223 static inline int tree_contains_unbindable(struct mount *mnt) in tree_contains_unbindable()
2225 struct mount *p; in tree_contains_unbindable()
2236 struct mount *p; in do_move_mount()
2237 struct mount *old; in do_move_mount()
2329 static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags) in do_add_mount()
2332 struct mount *parent; in do_add_mount()
2426 struct mount *mnt = real_mount(m); in finish_automount()
2476 struct mount *mnt, *next; in mark_mounts_for_expiry()
2498 mnt = list_first_entry(&graveyard, struct mount, mnt_expire); in mark_mounts_for_expiry()
2514 static int select_submounts(struct mount *parent, struct list_head *graveyard) in select_submounts()
2516 struct mount *this_parent = parent; in select_submounts()
2525 struct mount *mnt = list_entry(tmp, struct mount, mnt_child); in select_submounts()
2560 static void shrink_submounts(struct mount *mnt) in shrink_submounts()
2563 struct mount *m; in shrink_submounts()
2568 m = list_first_entry(&graveyard, struct mount, in shrink_submounts()
2777 struct mount *p, *q; in copy_mnt_ns()
2778 struct mount *old; in copy_mnt_ns()
2779 struct mount *new; in copy_mnt_ns()
2853 struct mount *mnt = real_mount(m); in create_mnt_ns()
2893 SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name, in SYSCALL_DEFINE5() argument
2932 bool is_path_reachable(struct mount *mnt, struct dentry *dentry, in is_path_reachable()
2981 struct mount *new_mnt, *root_mnt, *old_mnt; in SYSCALL_DEFINE2()
3110 mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount), in mnt_init()
3212 struct mount *mnt; in fs_fully_visible()
3220 struct mount *child; in fs_fully_visible()