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.h298 static inline void fsnotify_mntns_delete(struct mnt_namespace *mntns) in fsnotify_mntns_delete()
498 static inline void fsnotify_mnt_attach(struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt_attach()
503 static inline void fsnotify_mnt_detach(struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt_detach()
508 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;
656 extern void __fsnotify_mntns_delete(struct mnt_namespace *mntns);
659 extern void fsnotify_mnt(__u32 mask, struct mnt_namespace *ns, struct vfsmount *mnt);
959 static inline void __fsnotify_mntns_delete(struct mnt_namespace *mntns) in __fsnotify_mntns_delete()
976 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.h11 struct mnt_namespace { struct
82 struct mnt_namespace *mnt_ns;
92 struct mnt_namespace *prev_ns; /* previous namespace (NULL if none) */
157 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns()
170 struct mnt_namespace *ns;
186 static inline bool is_anon_ns(struct mnt_namespace *ns) in is_anon_ns()
193 struct mnt_namespace *ns = READ_ONCE(m->mnt_ns); in anon_ns_root()
203 static inline bool mnt_ns_empty(const struct mnt_namespace *ns) in mnt_ns_empty()
210 struct mnt_namespace *ns = mnt->mnt_ns; in move_from_ns()
221 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mnt_ns,
[all …]
H A Dnamespace.c86 static struct mnt_namespace *emptied_ns; /* protected by namespace_sem */
129 static void mnt_ns_release(struct mnt_namespace *ns) in mnt_ns_release()
138 DEFINE_FREE(mnt_ns_release, struct mnt_namespace *,
143 mnt_ns_release(container_of(rcu, struct mnt_namespace, ns.ns_rcu)); in mnt_ns_release_rcu()
146 static void mnt_ns_tree_remove(struct mnt_namespace *ns) in mnt_ns_tree_remove()
169 static struct mnt_namespace *lookup_mnt_ns(u64 mnt_ns_id) in lookup_mnt_ns()
171 struct mnt_namespace *mnt_ns; in lookup_mnt_ns()
183 mnt_ns = container_of(ns, struct mnt_namespace, ns); in lookup_mnt_ns()
840 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint()
965 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace()
[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/fs/notify/
H A Dfsnotify.c31 void __fsnotify_mntns_delete(struct mnt_namespace *mntns) in __fsnotify_mntns_delete()
694 void fsnotify_mnt(__u32 mask, struct mnt_namespace *ns, struct vfsmount *mnt) in fsnotify_mnt()
H A Dmark.c112 return &((struct mnt_namespace *)obj)->n_fsnotify_marks; in fsnotify_object_connp()