Home
last modified time | relevance | path

Searched refs:mnt_namespace (Results 1 – 20 of 20) 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 Dns_common.h13 struct mnt_namespace;
22 extern struct mnt_namespace init_mnt_ns;
65 struct mnt_namespace *: &(__ns)->ns, \
66 const struct mnt_namespace *: &(__ns)->ns, \
82 struct mnt_namespace *: MNT_NS_INIT_INO, \
93 struct mnt_namespace *: &init_mnt_ns, \
104 struct mnt_namespace *: &mntns_operations, \
115 struct mnt_namespace *: CLONE_NEWNS, \
H A Dnsproxy.h9 struct mnt_namespace;
36 struct mnt_namespace *mnt_ns;
H A Dfsnotify.h298 static inline void fsnotify_mntns_delete(struct mnt_namespace *mntns) in fsnotify_mntns_delete()
511 static inline void fsnotify_mnt_attach(struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt_attach()
516 static inline void fsnotify_mnt_detach(struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt_detach()
521 static inline void fsnotify_mnt_move(struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt_move()
H A Dfsnotify_backend.h334 const struct mnt_namespace *ns;
653 extern void __fsnotify_mntns_delete(struct mnt_namespace *mntns);
656 extern void fsnotify_mnt(__u32 mask, struct mnt_namespace *ns, struct vfsmount *mnt);
955 static inline void __fsnotify_mntns_delete(struct mnt_namespace *mntns) in __fsnotify_mntns_delete()
972 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 Dnstree.h27 struct mnt_namespace *: &(mnt_ns_tree), \
H A Dfs_context.h21 struct mnt_namespace;
/linux/fs/
H A Dmount.h10 struct mnt_namespace { struct
72 struct mnt_namespace *mnt_ns; /* containing namespace */
82 struct mnt_namespace *prev_ns; /* previous namespace (NULL if none) */
147 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns()
160 struct mnt_namespace *ns;
176 static inline bool is_anon_ns(struct mnt_namespace *ns) in is_anon_ns()
183 struct mnt_namespace *ns = READ_ONCE(m->mnt_ns); in anon_ns_root()
193 static inline bool mnt_ns_empty(const struct mnt_namespace *ns) in mnt_ns_empty()
200 struct mnt_namespace *ns = mnt->mnt_ns; in move_from_ns()
211 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mnt_ns,
[all …]
H A Dnamespace.c92 static struct mnt_namespace *emptied_ns; /* protected by namespace_sem */
135 static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node) in node_to_mnt_ns()
142 return container_of(ns, struct mnt_namespace, ns); in node_to_mnt_ns()
145 static void mnt_ns_release(struct mnt_namespace *ns) in mnt_ns_release()
154 DEFINE_FREE(mnt_ns_release, struct mnt_namespace *, if (_T) mnt_ns_release(_T)) in DEFINE_FREE() argument
158 mnt_ns_release(container_of(rcu, struct mnt_namespace, ns.ns_rcu)); in DEFINE_FREE()
161 static void mnt_ns_tree_remove(struct mnt_namespace *ns) in mnt_ns_tree_remove()
184 static struct mnt_namespace *lookup_mnt_ns(u64 mnt_ns_id) in lookup_mnt_ns()
186 struct mnt_namespace *mnt_ns; in lookup_mnt_ns()
198 mnt_ns = container_of(ns, struct mnt_namespace, ns); in lookup_mnt_ns()
[all …]
H A Dpnode.h61 int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
H A Dproc_namespace.c25 struct mnt_namespace *ns = p->ns; in mounts_poll()
239 struct mnt_namespace *ns = NULL; in mounts_open_common()
H A Dnsfs.c144 static int copy_ns_info_to_user(const struct mnt_namespace *mnt_ns, in copy_ns_info_to_user()
204 struct mnt_namespace *mnt_ns; in ns_ioctl()
H A Dd_path.c112 struct mnt_namespace *mnt_ns; in __prepend_path()
H A Dpnode.c34 struct mnt_namespace *ns, in get_peer_under_root()
/linux/fs/notify/
H A Dfsnotify.h36 static inline struct mnt_namespace *fsnotify_conn_mntns( in fsnotify_conn_mntns()
98 static inline void fsnotify_clear_marks_by_mntns(struct mnt_namespace *mntns) in fsnotify_clear_marks_by_mntns()
H A Dfdinfo.c131 struct mnt_namespace *mnt_ns = fsnotify_conn_mntns(mark->connector); in fanotify_fdinfo()
H A Dfsnotify.c31 void __fsnotify_mntns_delete(struct mnt_namespace *mntns) in __fsnotify_mntns_delete()
743 void fsnotify_mnt(__u32 mask, struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt()
H A Dmark.c111 return &((struct mnt_namespace *)obj)->n_fsnotify_marks; in fsnotify_object_connp()
/linux/fs/notify/fanotify/
H A Dfanotify_user.c1912 struct mnt_namespace *mntns; in do_fanotify_mark()