5 #include <linux/mount.h>
6 #include <linux/sched.h>
7 #include <linux/nsproxy.h>
8 #include <linux/seq_file.h>
10 struct mnt_namespace {
12 struct vfsmount * root;
13 struct list_head list;
14 wait_queue_head_t poll;
19 struct seq_file m; /* must be the first element */
20 struct mnt_namespace *ns;
27 extern struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt);
28 extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
30 extern void put_mnt_ns(struct mnt_namespace *ns);
32 static inline void exit_mnt_ns(struct task_struct *p)
34 struct mnt_namespace *ns = p->nsproxy->mnt_ns;
39 static inline void get_mnt_ns(struct mnt_namespace *ns)
41 atomic_inc(&ns->count);
44 extern const struct seq_operations mounts_op;
45 extern const struct seq_operations mountinfo_op;
46 extern const struct seq_operations mountstats_op;