Home
last modified time | relevance | path

Searched refs:mnt_namespace (Results 1 – 14 of 14) sorted by relevance

/linux/include/linux/
H A Dmnt_namespace.h9 struct mnt_namespace;
14 extern struct mnt_namespace init_mnt_ns;
16 extern struct mnt_namespace *copy_mnt_ns(u64, struct mnt_namespace *,
18 extern void put_mnt_ns(struct mnt_namespace *ns);
19 DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
20 extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
H A Dnsproxy.h9 struct mnt_namespace;
36 struct mnt_namespace *mnt_ns;
H A Dfsnotify_backend.h335 const struct mnt_namespace *ns;
677 extern void __fsnotify_mntns_delete(struct mnt_namespace *mntns);
680 extern void fsnotify_mnt(__u32 mask, struct mnt_namespace *ns, struct vfsmount *mnt);
981 static inline void __fsnotify_mntns_delete(struct mnt_namespace *mntns) in __fsnotify_mntns_delete()
998 static inline void fsnotify_mnt(__u32 mask, struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt()
H A Dnsfs.h33 struct mnt_namespace *: current->nsproxy->mnt_ns, \
H A Dfs_context.h21 struct mnt_namespace;
/linux/fs/
H A Dmount.h13 struct mnt_namespace { struct
89 struct mnt_namespace *mnt_ns;
99 struct mnt_namespace *prev_ns; /* previous namespace (NULL if none) */
166 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns()
179 struct mnt_namespace *ns;
195 static inline bool is_anon_ns(struct mnt_namespace *ns) in is_anon_ns()
202 struct mnt_namespace *ns = READ_ONCE(m->mnt_ns); in anon_ns_root()
212 static inline bool mnt_ns_empty(const struct mnt_namespace *ns) in mnt_ns_empty()
219 struct mnt_namespace *ns = mnt->mnt_ns; in move_from_ns()
232 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mnt_ns,
[all …]
H A Dnamespace.c14 #include <linux/mnt_namespace.h>
88 static struct mnt_namespace *emptied_ns; /* protected by namespace_sem */
131 static void mnt_ns_release(struct mnt_namespace *ns) in mnt_ns_release()
139 DEFINE_FREE(mnt_ns_release, struct mnt_namespace *,
144 mnt_ns_release(container_of(rcu, struct mnt_namespace, ns.ns_rcu)); in mnt_ns_release_rcu()
147 static void mnt_ns_tree_remove(struct mnt_namespace *ns) in mnt_ns_tree_remove()
170 static struct mnt_namespace *lookup_mnt_ns(u64 mnt_ns_id) in lookup_mnt_ns()
172 struct mnt_namespace *mnt_ns; in lookup_mnt_ns()
184 mnt_ns = container_of(ns, struct mnt_namespace, ns); in lookup_mnt_ns()
891 struct mnt_namespace *n in __is_local_mountpoint()
[all...]
H A Dpnode.h61 int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
H A Dnsfs.c149 static int copy_ns_info_to_user(const struct mnt_namespace *mnt_ns, in copy_ns_info_to_user()
220 struct mnt_namespace *mnt_ns; in ns_ioctl()
H A Dfhandle.c290 struct mnt_namespace *mnt_ns; in capable_wrt_mount()
H A Dpnode.c34 struct mnt_namespace *ns, in get_peer_under_root()
/linux/include/linux/ns/
H A Dns_common_types.h15 struct mnt_namespace;
25 extern struct mnt_namespace init_mnt_ns;
132 struct mnt_namespace *: &(__ns)->ns, \
133 const struct mnt_namespace *: &(__ns)->ns, \
149 struct mnt_namespace *: MNT_NS_INIT_INO, \
160 struct mnt_namespace *: &init_mnt_ns, \
171 struct mnt_namespace *: MNT_NS_INIT_ID, \
182 struct mnt_namespace *: &mntns_operations, \
202 X(mnt_namespace, CLONE_NEWNS) \
/linux/fs/notify/
H A Dmark.c112 return &((struct mnt_namespace *)obj)->n_fsnotify_marks; in fsnotify_object_connp()
/linux/fs/notify/fanotify/
H A Dfanotify_user.c1871 struct mnt_namespace *mntns; in do_fanotify_mark()