| /linux/include/linux/ |
| H A D | mnt_namespace.h | 9 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 D | ns_common.h | 13 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 D | nsproxy.h | 9 struct mnt_namespace; 36 struct mnt_namespace *mnt_ns;
|
| H A D | fsnotify.h | 298 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 D | fsnotify_backend.h | 334 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 D | nsfs.h | 33 struct mnt_namespace *: current->nsproxy->mnt_ns, \
|
| H A D | nstree.h | 27 struct mnt_namespace *: &(mnt_ns_tree), \
|
| H A D | fs_context.h | 21 struct mnt_namespace;
|
| /linux/fs/ |
| H A D | mount.h | 10 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 D | namespace.c | 92 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 D | pnode.h | 61 int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
|
| H A D | proc_namespace.c | 25 struct mnt_namespace *ns = p->ns; in mounts_poll() 239 struct mnt_namespace *ns = NULL; in mounts_open_common()
|
| H A D | nsfs.c | 144 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 D | d_path.c | 112 struct mnt_namespace *mnt_ns; in __prepend_path()
|
| H A D | pnode.c | 34 struct mnt_namespace *ns, in get_peer_under_root()
|
| /linux/fs/notify/ |
| H A D | fsnotify.h | 36 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 D | fdinfo.c | 131 struct mnt_namespace *mnt_ns = fsnotify_conn_mntns(mark->connector); in fanotify_fdinfo()
|
| H A D | fsnotify.c | 31 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 D | mark.c | 111 return &((struct mnt_namespace *)obj)->n_fsnotify_marks; in fsnotify_object_connp()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1912 struct mnt_namespace *mntns; in do_fanotify_mark()
|