Lines Matching refs:mnt_namespace

82 static struct mnt_namespace *emptied_ns; /* protected by namespace_sem */
120 static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node) in node_to_mnt_ns()
124 return rb_entry(node, struct mnt_namespace, mnt_ns_tree_node); in node_to_mnt_ns()
129 struct mnt_namespace *ns_a = node_to_mnt_ns(a); in mnt_ns_cmp()
130 struct mnt_namespace *ns_b = node_to_mnt_ns(b); in mnt_ns_cmp()
151 static void mnt_ns_tree_add(struct mnt_namespace *ns) in mnt_ns_tree_add()
171 static void mnt_ns_release(struct mnt_namespace *ns) in mnt_ns_release()
180 DEFINE_FREE(mnt_ns_release, struct mnt_namespace *, if (_T) mnt_ns_release(_T)) in DEFINE_FREE() argument
184 mnt_ns_release(container_of(rcu, struct mnt_namespace, mnt_ns_rcu)); in DEFINE_FREE()
187 static void mnt_ns_tree_remove(struct mnt_namespace *ns) in mnt_ns_tree_remove()
203 const struct mnt_namespace *ns = node_to_mnt_ns(node); in mnt_ns_find()
226 static struct mnt_namespace *lookup_mnt_ns(u64 mnt_ns_id) in lookup_mnt_ns()
228 struct mnt_namespace *ns; in lookup_mnt_ns()
899 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint()
1026 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace()
1037 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace()
1136 static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt) in mnt_add_to_ns()
1196 struct mnt_namespace *n = mnt->mnt_parent->mnt_ns; in commit_tree()
1541 static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at()
1565 static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at_reverse()
1730 static void free_mnt_ns(struct mnt_namespace *);
1736 struct mnt_namespace *ns = emptied_ns; in namespace_unlock()
1846 struct mnt_namespace *ns; in umount_tree()
2148 struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) in from_mnt_ns()
2153 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mntns, bool previous) in get_sequential_mnt_ns()
2167 mntns = list_entry_rcu(list, struct mnt_namespace, mnt_ns_list); in get_sequential_mnt_ns()
2189 struct mnt_namespace *mnt_ns_from_dentry(struct dentry *dentry) in mnt_ns_from_dentry()
2202 struct mnt_namespace *mnt_ns = mnt_ns_from_dentry(dentry); in mnt_ns_loop()
2343 static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *, bool);
2528 int count_mounts(struct mnt_namespace *ns, struct mount *mnt) in count_mounts()
2628 struct mnt_namespace *ns = dest_mnt->mnt_ns; in attach_recursive_mnt()
2864 struct mnt_namespace *ns = m->mnt_ns; in may_change_propagation()
3062 struct mnt_namespace *ns, *mnt_ns = current->nsproxy->mnt_ns, *src_mnt_ns; in open_detached_copy()
3583 struct mnt_namespace *ns; in do_move_mount()
4151 static void free_mnt_ns(struct mnt_namespace *ns) in free_mnt_ns()
4168 static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool anon) in alloc_mnt_ns()
4170 struct mnt_namespace *new_ns; in alloc_mnt_ns()
4178 new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL_ACCOUNT); in alloc_mnt_ns()
4206 struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns, in copy_mnt_ns()
4209 struct mnt_namespace *new_ns; in copy_mnt_ns()
4291 struct mnt_namespace *ns; in mount_subtree()
4395 struct mnt_namespace *ns; in SYSCALL_DEFINE3()
5221 static struct vfsmount *lookup_mnt_in_ns(u64 id, struct mnt_namespace *ns) in lookup_mnt_in_ns()
5400 static void statmount_mnt_ns_id(struct kstatmount *s, struct mnt_namespace *ns) in statmount_mnt_ns_id()
5661 static int grab_requested_root(struct mnt_namespace *ns, struct path *root) in grab_requested_root()
5712 struct mnt_namespace *ns) in do_statmount()
5892 static struct mnt_namespace *grab_requested_mnt_ns(const struct mnt_id_req *kreq) in grab_requested_mnt_ns()
5894 struct mnt_namespace *mnt_ns; in grab_requested_mnt_ns()
5929 struct mnt_namespace *ns __free(mnt_ns_release) = NULL; in SYSCALL_DEFINE4()
5971 static ssize_t do_listmount(struct mnt_namespace *ns, u64 mnt_parent_id, in do_listmount()
6037 struct mnt_namespace *ns __free(mnt_ns_release) = NULL; in SYSCALL_DEFINE4()
6098 struct mnt_namespace *ns; in init_mount_tree()
6161 void put_mnt_ns(struct mnt_namespace *ns) in put_mnt_ns()
6240 static bool mnt_already_visible(struct mnt_namespace *ns, in mnt_already_visible()
6307 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in mount_too_revealing()
6365 struct mnt_namespace *mnt_ns = to_mnt_ns(ns), *old_mnt_ns; in mntns_install()