Lines Matching refs:mnt_namespace

111 static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node)  in node_to_mnt_ns()
115 return rb_entry(node, struct mnt_namespace, mnt_ns_tree_node); in node_to_mnt_ns()
120 struct mnt_namespace *ns_a = node_to_mnt_ns(a); in mnt_ns_cmp()
121 struct mnt_namespace *ns_b = node_to_mnt_ns(b); in mnt_ns_cmp()
142 static void mnt_ns_tree_add(struct mnt_namespace *ns) in mnt_ns_tree_add()
162 static void mnt_ns_release(struct mnt_namespace *ns) in mnt_ns_release()
170 DEFINE_FREE(mnt_ns_release, struct mnt_namespace *, if (_T) mnt_ns_release(_T)) in DEFINE_FREE() argument
174 mnt_ns_release(container_of(rcu, struct mnt_namespace, mnt_ns_rcu)); in DEFINE_FREE()
177 static void mnt_ns_tree_remove(struct mnt_namespace *ns) in mnt_ns_tree_remove()
193 const struct mnt_namespace *ns = node_to_mnt_ns(node); in mnt_ns_find()
216 static struct mnt_namespace *lookup_mnt_ns(u64 mnt_ns_id) in lookup_mnt_ns()
218 struct mnt_namespace *ns; in lookup_mnt_ns()
893 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint()
1004 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace()
1015 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace()
1154 static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt) in mnt_add_to_ns()
1189 struct mnt_namespace *n = parent->mnt_ns; in commit_tree()
1577 static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at()
1601 static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at_reverse()
1822 struct mnt_namespace *ns; in umount_tree()
2107 struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) in from_mnt_ns()
2112 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mntns, bool previous) in get_sequential_mnt_ns()
2126 mntns = list_entry_rcu(list, struct mnt_namespace, mnt_ns_list); in get_sequential_mnt_ns()
2153 struct mnt_namespace *mnt_ns; in mnt_ns_loop()
2246 static void free_mnt_ns(struct mnt_namespace *);
2247 static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *, bool);
2251 struct mnt_namespace *ns; in dissolve_on_fput()
2401 int count_mounts(struct mnt_namespace *ns, struct mount *mnt) in count_mounts()
2503 struct mnt_namespace *ns = top_mnt->mnt_ns; in attach_recursive_mnt()
2857 struct mnt_namespace *ns = alloc_mnt_ns(user_ns, true); in open_detached_copy()
3326 struct mnt_namespace *ns; in do_move_mount()
3915 static void free_mnt_ns(struct mnt_namespace *ns) in free_mnt_ns()
3932 static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool anon) in alloc_mnt_ns()
3934 struct mnt_namespace *new_ns; in alloc_mnt_ns()
3942 new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL_ACCOUNT); in alloc_mnt_ns()
3970 struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns, in copy_mnt_ns()
3973 struct mnt_namespace *new_ns; in copy_mnt_ns()
4055 struct mnt_namespace *ns; in mount_subtree()
4159 struct mnt_namespace *ns; in SYSCALL_DEFINE3()
4904 static struct vfsmount *lookup_mnt_in_ns(u64 id, struct mnt_namespace *ns) in lookup_mnt_in_ns()
5080 static void statmount_mnt_ns_id(struct kstatmount *s, struct mnt_namespace *ns) in statmount_mnt_ns_id()
5293 static int grab_requested_root(struct mnt_namespace *ns, struct path *root) in grab_requested_root()
5327 struct mnt_namespace *ns) in do_statmount()
5475 static struct mnt_namespace *grab_requested_mnt_ns(const struct mnt_id_req *kreq) in grab_requested_mnt_ns()
5477 struct mnt_namespace *mnt_ns; in grab_requested_mnt_ns()
5512 struct mnt_namespace *ns __free(mnt_ns_release) = NULL; in SYSCALL_DEFINE4()
5554 static ssize_t do_listmount(struct mnt_namespace *ns, u64 mnt_parent_id, in do_listmount()
5620 struct mnt_namespace *ns __free(mnt_ns_release) = NULL; in SYSCALL_DEFINE4()
5677 struct mnt_namespace *ns; in init_mount_tree()
5739 void put_mnt_ns(struct mnt_namespace *ns) in put_mnt_ns()
5814 static bool mnt_already_visible(struct mnt_namespace *ns, in mnt_already_visible()
5881 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in mount_too_revealing()
5939 struct mnt_namespace *mnt_ns = to_mnt_ns(ns), *old_mnt_ns; in mntns_install()