Lines Matching refs:mount

105 static int mnt_alloc_id(struct mount *mnt)  in mnt_alloc_id()
115 static void mnt_free_id(struct mount *mnt) in mnt_free_id()
123 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id()
136 void mnt_release_group_id(struct mount *mnt) in mnt_release_group_id()
145 static inline void mnt_add_count(struct mount *mnt, int n) in mnt_add_count()
159 int mnt_get_count(struct mount *mnt) in mnt_get_count()
175 static struct mount *alloc_vfsmnt(const char *name) in alloc_vfsmnt()
177 struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt()
252 static inline void mnt_inc_writers(struct mount *mnt) in mnt_inc_writers()
261 static inline void mnt_dec_writers(struct mount *mnt) in mnt_dec_writers()
270 static unsigned int mnt_get_writers(struct mount *mnt) in mnt_get_writers()
313 struct mount *mnt = real_mount(m); in __mnt_want_write()
462 static int mnt_make_readonly(struct mount *mnt) in mnt_make_readonly()
504 static int __mnt_unmake_readonly(struct mount *mnt) in __mnt_unmake_readonly()
514 struct mount *mnt; in sb_prepare_remount_readonly()
548 static void free_vfsmnt(struct mount *mnt) in free_vfsmnt()
559 free_vfsmnt(container_of(head, struct mount, mnt_rcu)); in delayed_free_vfsmnt()
565 struct mount *mnt; in __legitimize_mnt()
608 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) in __lookup_mnt()
611 struct mount *p; in __lookup_mnt()
637 struct mount *child_mnt; in lookup_mnt()
661 static inline bool mnt_is_cursor(struct mount *mnt) in mnt_is_cursor()
684 struct mount *mnt; in __is_local_mountpoint()
790 static inline int check_mnt(struct mount *mnt) in check_mnt()
820 static struct mountpoint *unhash_mnt(struct mount *mnt) in unhash_mnt()
836 static void umount_mnt(struct mount *mnt) in umount_mnt()
844 void mnt_set_mountpoint(struct mount *mnt, in mnt_set_mountpoint()
846 struct mount *child_mnt) in mnt_set_mountpoint()
856 static void __attach_mnt(struct mount *mnt, struct mount *parent) in __attach_mnt()
866 static void attach_mnt(struct mount *mnt, in attach_mnt()
867 struct mount *parent, in attach_mnt()
874 void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt) in mnt_change_mountpoint()
877 struct mount *old_parent = mnt->mnt_parent; in mnt_change_mountpoint()
892 static void commit_tree(struct mount *mnt) in commit_tree()
894 struct mount *parent = mnt->mnt_parent; in commit_tree()
895 struct mount *m; in commit_tree()
914 static struct mount *next_mnt(struct mount *p, struct mount *root) in next_mnt()
927 return list_entry(next, struct mount, mnt_child); in next_mnt()
930 static struct mount *skip_mnt_tree(struct mount *p) in skip_mnt_tree()
934 p = list_entry(prev, struct mount, mnt_child); in skip_mnt_tree()
951 struct mount *mnt; in vfs_create_mount()
1032 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt()
1036 struct mount *mnt; in clone_mnt()
1098 static void cleanup_mnt(struct mount *mnt) in cleanup_mnt()
1101 struct mount *m; in cleanup_mnt()
1125 cleanup_mnt(container_of(head, struct mount, mnt_rcu)); in __cleanup_mnt()
1132 struct mount *m, *t; in delayed_mntput()
1139 static void mntput_no_expire(struct mount *mnt) in mntput_no_expire()
1184 struct mount *p, *tmp; in mntput_no_expire()
1210 struct mount *m = real_mount(mnt); in mntput()
1258 struct mount *p; in mnt_clone_internal()
1267 static struct mount *mnt_list_next(struct mnt_namespace *ns, in mnt_list_next()
1270 struct mount *mnt, *ret = NULL; in mnt_list_next()
1308 struct mount *mnt = v; in m_next()
1317 struct mount *mnt = v; in m_stop()
1331 struct mount *r = v; in m_show()
1342 void mnt_cursor_del(struct mnt_namespace *ns, struct mount *cursor) in mnt_cursor_del()
1362 struct mount *mnt = real_mount(m); in may_umount_tree()
1365 struct mount *p; in may_umount_tree()
1415 struct mount *m; in namespace_unlock()
1447 static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how) in disconnect_mount()
1480 static void umount_tree(struct mount *mnt, enum umount_tree_flags how) in umount_tree()
1483 struct mount *p; in umount_tree()
1506 p = list_first_entry(&tmp_list, struct mount, mnt_list); in umount_tree()
1534 static void shrink_submounts(struct mount *mnt);
1559 static int do_umount(struct mount *mnt, int flags) in do_umount()
1668 struct mount *mnt; in __detach_mounts()
1678 mnt = hlist_entry(mp->m_list.first, struct mount, mnt_mp_list); in __detach_mounts()
1718 struct mount *mnt = real_mount(path->mnt); in can_umount()
1736 struct mount *mnt = real_mount(path->mnt); in path_umount()
1814 struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, in copy_tree()
1817 struct mount *res, *p, *q, *r, *parent; in copy_tree()
1833 struct mount *s; in copy_tree()
1883 struct mount *tree; in collect_mounts()
1926 static bool has_locked_children(struct mount *mnt, struct dentry *dentry) in has_locked_children()
1928 struct mount *child; in has_locked_children()
1951 struct mount *old_mnt = real_mount(path->mnt); in clone_private_mount()
1952 struct mount *new_mnt; in clone_private_mount()
1984 struct mount *mnt; in iterate_mounts()
1996 static void lock_mnt_tree(struct mount *mnt) in lock_mnt_tree()
1998 struct mount *p; in lock_mnt_tree()
2023 static void cleanup_group_ids(struct mount *mnt, struct mount *end) in cleanup_group_ids()
2025 struct mount *p; in cleanup_group_ids()
2033 static int invent_group_ids(struct mount *mnt, bool recurse) in invent_group_ids()
2035 struct mount *p; in invent_group_ids()
2050 int count_mounts(struct mnt_namespace *ns, struct mount *mnt) in count_mounts()
2054 struct mount *p; in count_mounts()
2135 static int attach_recursive_mnt(struct mount *source_mnt, in attach_recursive_mnt()
2136 struct mount *dest_mnt, in attach_recursive_mnt()
2144 struct mount *child, *p; in attach_recursive_mnt()
2189 struct mount *q; in attach_recursive_mnt()
2208 child = hlist_entry(tree_list.first, struct mount, mnt_hash); in attach_recursive_mnt()
2265 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp) in graft_tree()
2299 struct mount *m; in do_change_type()
2300 struct mount *mnt = real_mount(path->mnt); in do_change_type()
2329 static struct mount *__do_loopback(struct path *old_path, int recurse) in __do_loopback()
2331 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback()
2360 struct mount *mnt = NULL, *parent; in do_loopback()
2406 struct mount *mnt, *p; in open_detached_copy()
2498 static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags) in can_change_locked_flags()
2525 static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags) in change_mount_ro_state()
2542 static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags) in set_mount_attributes()
2581 struct mount *mnt = real_mount(path->mnt); in do_reconfigure_mnt()
2614 struct mount *mnt = real_mount(path->mnt); in do_remount()
2649 static inline int tree_contains_unbindable(struct mount *mnt) in tree_contains_unbindable()
2651 struct mount *p; in tree_contains_unbindable()
2665 static bool check_for_nsfs_mounts(struct mount *subtree) in check_for_nsfs_mounts()
2667 struct mount *p; in check_for_nsfs_mounts()
2684 struct mount *p; in do_move_mount()
2685 struct mount *old; in do_move_mount()
2686 struct mount *parent; in do_move_mount()
2783 static int do_add_mount(struct mount *newmnt, struct mountpoint *mp, in do_add_mount()
2786 struct mount *parent = real_mount(path->mnt); in do_add_mount()
2911 struct mount *mnt; in finish_automount()
2999 struct mount *mnt, *next; in mark_mounts_for_expiry()
3021 mnt = list_first_entry(&graveyard, struct mount, mnt_expire); in mark_mounts_for_expiry()
3037 static int select_submounts(struct mount *parent, struct list_head *graveyard) in select_submounts()
3039 struct mount *this_parent = parent; in select_submounts()
3048 struct mount *mnt = list_entry(tmp, struct mount, mnt_child); in select_submounts()
3083 static void shrink_submounts(struct mount *mnt) in shrink_submounts()
3086 struct mount *m; in shrink_submounts()
3091 m = list_first_entry(&graveyard, struct mount, in shrink_submounts()
3316 struct mount *p, *q; in copy_mnt_ns()
3317 struct mount *old; in copy_mnt_ns()
3318 struct mount *new; in copy_mnt_ns()
3392 struct mount *mnt = real_mount(m); in mount_subtree()
3427 SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name, in SYSCALL_DEFINE5() argument
3472 struct mount *mnt; in SYSCALL_DEFINE3()
3664 bool is_path_reachable(struct mount *mnt, struct dentry *dentry, in is_path_reachable()
3713 struct mount *new_mnt, *root_mnt, *old_mnt, *root_parent, *ex_parent; in SYSCALL_DEFINE2()
3811 struct mount *m; in init_mount_tree()
3842 mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount), in mnt_init()
3954 struct mount *mnt; in mnt_already_visible()
3960 struct mount *child; in mnt_already_visible()