diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-06 12:21:54 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:57:13 -0500 |
commit | 0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead (patch) | |
tree | cb0f26e6329e2222a9f3b8f85887f63980a01d37 /fs/mount.h | |
parent | 3a2393d71d77b034669d495b49c212a87e04abdc (diff) | |
download | kernel_goldelico_gta04-0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead.zip kernel_goldelico_gta04-0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead.tar.gz kernel_goldelico_gta04-0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead.tar.bz2 |
vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
rationale: that stuff is far tighter bound to fs/namespace.c than to
the guts of procfs proper.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/mount.h')
-rw-r--r-- | fs/mount.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1,4 +1,14 @@ #include <linux/mount.h> +#include <linux/seq_file.h> +#include <linux/poll.h> + +struct mnt_namespace { + atomic_t count; + struct vfsmount * root; + struct list_head list; + wait_queue_head_t poll; + int event; +}; struct mnt_pcp { int mnt_count; @@ -49,3 +59,17 @@ static inline int mnt_has_parent(struct mount *mnt) } extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int); + +static inline void get_mnt_ns(struct mnt_namespace *ns) +{ + atomic_inc(&ns->count); +} + +struct proc_mounts { + struct seq_file m; /* must be the first element */ + struct mnt_namespace *ns; + struct path root; + int (*show)(struct seq_file *, struct vfsmount *); +}; + +extern const struct seq_operations mounts_op; |