Lines Matching refs:m

20 	struct seq_file *m = file->private_data;  in mounts_poll()  local
21 struct proc_mounts *p = m->private; in mounts_poll()
29 if (m->poll_event != event) { in mounts_poll()
30 m->poll_event = event; in mounts_poll()
42 static int show_sb_opts(struct seq_file *m, struct super_block *sb) in show_sb_opts() argument
55 seq_puts(m, fs_infop->str); in show_sb_opts()
58 return security_sb_show_options(m, sb); in show_sb_opts()
61 static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) in show_mnt_opts() argument
76 seq_puts(m, fs_infop->str); in show_mnt_opts()
80 static inline void mangle(struct seq_file *m, const char *s) in mangle() argument
82 seq_escape(m, s, " \t\n\\"); in mangle()
85 static void show_type(struct seq_file *m, struct super_block *sb) in show_type() argument
87 mangle(m, sb->s_type->name); in show_type()
89 seq_putc(m, '.'); in show_type()
90 mangle(m, sb->s_subtype); in show_type()
94 static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt) in show_vfsmnt() argument
96 struct proc_mounts *p = m->private; in show_vfsmnt()
103 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsmnt()
107 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt()
109 seq_putc(m, ' '); in show_vfsmnt()
111 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_vfsmnt()
114 seq_putc(m, ' '); in show_vfsmnt()
115 show_type(m, sb); in show_vfsmnt()
116 seq_puts(m, __mnt_is_readonly(mnt) ? " ro" : " rw"); in show_vfsmnt()
117 err = show_sb_opts(m, sb); in show_vfsmnt()
120 show_mnt_opts(m, mnt); in show_vfsmnt()
122 err = sb->s_op->show_options(m, mnt_path.dentry); in show_vfsmnt()
123 seq_puts(m, " 0 0\n"); in show_vfsmnt()
128 static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt) in show_mountinfo() argument
130 struct proc_mounts *p = m->private; in show_mountinfo()
136 seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, in show_mountinfo()
139 err = sb->s_op->show_path(m, mnt->mnt_root); in show_mountinfo()
141 seq_dentry(m, mnt->mnt_root, " \t\n\\"); in show_mountinfo()
144 seq_putc(m, ' '); in show_mountinfo()
147 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_mountinfo()
151 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo()
152 show_mnt_opts(m, mnt); in show_mountinfo()
156 seq_printf(m, " shared:%i", r->mnt_group_id); in show_mountinfo()
160 seq_printf(m, " master:%i", master); in show_mountinfo()
162 seq_printf(m, " propagate_from:%i", dom); in show_mountinfo()
165 seq_puts(m, " unbindable"); in show_mountinfo()
168 seq_puts(m, " - "); in show_mountinfo()
169 show_type(m, sb); in show_mountinfo()
170 seq_putc(m, ' '); in show_mountinfo()
172 err = sb->s_op->show_devname(m, mnt->mnt_root); in show_mountinfo()
174 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_mountinfo()
177 seq_puts(m, sb->s_flags & MS_RDONLY ? " ro" : " rw"); in show_mountinfo()
178 err = show_sb_opts(m, sb); in show_mountinfo()
182 err = sb->s_op->show_options(m, mnt->mnt_root); in show_mountinfo()
183 seq_putc(m, '\n'); in show_mountinfo()
188 static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt) in show_vfsstat() argument
190 struct proc_mounts *p = m->private; in show_vfsstat()
198 seq_puts(m, "device "); in show_vfsstat()
199 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsstat()
204 seq_puts(m, "device "); in show_vfsstat()
205 mangle(m, r->mnt_devname); in show_vfsstat()
207 seq_puts(m, "no device"); in show_vfsstat()
211 seq_puts(m, " mounted on "); in show_vfsstat()
213 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_vfsstat()
216 seq_putc(m, ' '); in show_vfsstat()
219 seq_puts(m, "with fstype "); in show_vfsstat()
220 show_type(m, sb); in show_vfsstat()
224 seq_putc(m, ' '); in show_vfsstat()
226 err = sb->s_op->show_stats(m, mnt_path.dentry); in show_vfsstat()
229 seq_putc(m, '\n'); in show_vfsstat()
242 struct seq_file *m; in mounts_open_common() local
271 m = file->private_data; in mounts_open_common()
272 m->poll_event = ns->event; in mounts_open_common()
274 p = m->private; in mounts_open_common()
292 struct seq_file *m = file->private_data; in mounts_release() local
293 struct proc_mounts *p = m->private; in mounts_release()