24 poll_wait(file, &p->
ns->poll, wait);
27 if (p->
m.poll_event != ns->
event) {
28 p->
m.poll_event = ns->
event;
51 for (fs_infop = fs_info; fs_infop->
flag; fs_infop++) {
72 for (fs_infop = mnt_info; fs_infop->
flag; fs_infop++) {
78 static inline void mangle(
struct seq_file *m,
const char *
s)
85 mangle(m, sb->
s_type->name);
94 struct mount *
r = real_mount(mnt);
99 if (sb->
s_op->show_devname) {
100 err = sb->
s_op->show_devname(m, mnt_path.
dentry);
111 err = show_sb_opts(m, sb);
114 show_mnt_opts(m, mnt);
115 if (sb->
s_op->show_options)
116 err = sb->
s_op->show_options(m, mnt_path.
dentry);
125 struct mount *r = real_mount(mnt);
133 if (sb->
s_op->show_path)
147 show_mnt_opts(m, mnt);
156 if (dom && dom != master)
166 if (sb->
s_op->show_devname)
173 err = show_sb_opts(m, sb);
176 if (sb->
s_op->show_options)
185 struct mount *r = real_mount(mnt);
191 if (sb->
s_op->show_devname) {
193 err = sb->
s_op->show_devname(m, mnt_path.
dentry);
212 if (sb->
s_op->show_stats) {
215 err = sb->
s_op->show_stats(m, mnt_path.
dentry);
222 static int mounts_open_common(
struct inode *
inode,
struct file *file,
236 nsp = task_nsproxy(task);
239 put_task_struct(task);
245 put_task_struct(task);
253 put_task_struct(task);
257 get_fs_root(task->
fs, &root);
259 put_task_struct(task);
273 p->
m.poll_event = ns->
event;
288 static int mounts_release(
struct inode *inode,
struct file *file)
296 static int mounts_open(
struct inode *inode,
struct file *file)
298 return mounts_open_common(inode, file, show_vfsmnt);
301 static int mountinfo_open(
struct inode *inode,
struct file *file)
303 return mounts_open_common(inode, file, show_mountinfo);
306 static int mountstats_open(
struct inode *inode,
struct file *file)
308 return mounts_open_common(inode, file, show_vfsstat);
315 .release = mounts_release,
320 .open = mountinfo_open,
323 .release = mounts_release,
328 .open = mountstats_open,
331 .release = mounts_release,