• Home
  • Raw
  • Download

Lines Matching refs:m

23 	struct seq_file *m = file->private_data;  in mounts_poll()  local
24 struct proc_mounts *p = m->private; in mounts_poll()
32 if (m->poll_event != event) { in mounts_poll()
33 m->poll_event = event; in mounts_poll()
45 static int show_sb_opts(struct seq_file *m, struct super_block *sb) in show_sb_opts() argument
58 seq_puts(m, fs_infop->str); in show_sb_opts()
61 return security_sb_show_options(m, sb); in show_sb_opts()
64 static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) in show_mnt_opts() argument
80 seq_puts(m, fs_infop->str); in show_mnt_opts()
84 static inline void mangle(struct seq_file *m, const char *s) in mangle() argument
86 seq_escape(m, s, " \t\n\\"); in mangle()
89 static void show_type(struct seq_file *m, struct super_block *sb) in show_type() argument
91 mangle(m, sb->s_type->name); in show_type()
93 seq_putc(m, '.'); in show_type()
94 mangle(m, sb->s_subtype); in show_type()
98 static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt) in show_vfsmnt() argument
100 struct proc_mounts *p = m->private; in show_vfsmnt()
107 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsmnt()
111 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt()
113 seq_putc(m, ' '); in show_vfsmnt()
115 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_vfsmnt()
118 seq_putc(m, ' '); in show_vfsmnt()
119 show_type(m, sb); in show_vfsmnt()
120 seq_puts(m, __mnt_is_readonly(mnt) ? " ro" : " rw"); in show_vfsmnt()
121 err = show_sb_opts(m, sb); in show_vfsmnt()
124 show_mnt_opts(m, mnt); in show_vfsmnt()
126 err = sb->s_op->show_options(m, mnt_path.dentry); in show_vfsmnt()
127 seq_puts(m, " 0 0\n"); in show_vfsmnt()
132 static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt) in show_mountinfo() argument
134 struct proc_mounts *p = m->private; in show_mountinfo()
140 seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, in show_mountinfo()
143 err = sb->s_op->show_path(m, mnt->mnt_root); in show_mountinfo()
147 seq_dentry(m, mnt->mnt_root, " \t\n\\"); in show_mountinfo()
149 seq_putc(m, ' '); in show_mountinfo()
152 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_mountinfo()
156 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo()
157 show_mnt_opts(m, mnt); in show_mountinfo()
161 seq_printf(m, " shared:%i", r->mnt_group_id); in show_mountinfo()
165 seq_printf(m, " master:%i", master); in show_mountinfo()
167 seq_printf(m, " propagate_from:%i", dom); in show_mountinfo()
170 seq_puts(m, " unbindable"); in show_mountinfo()
173 seq_puts(m, " - "); in show_mountinfo()
174 show_type(m, sb); in show_mountinfo()
175 seq_putc(m, ' '); in show_mountinfo()
177 err = sb->s_op->show_devname(m, mnt->mnt_root); in show_mountinfo()
181 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_mountinfo()
183 seq_puts(m, sb_rdonly(sb) ? " ro" : " rw"); in show_mountinfo()
184 err = show_sb_opts(m, sb); in show_mountinfo()
188 err = sb->s_op->show_options(m, mnt->mnt_root); in show_mountinfo()
189 seq_putc(m, '\n'); in show_mountinfo()
194 static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt) in show_vfsstat() argument
196 struct proc_mounts *p = m->private; in show_vfsstat()
204 seq_puts(m, "device "); in show_vfsstat()
205 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsstat()
210 seq_puts(m, "device "); in show_vfsstat()
211 mangle(m, r->mnt_devname); in show_vfsstat()
213 seq_puts(m, "no device"); in show_vfsstat()
217 seq_puts(m, " mounted on "); in show_vfsstat()
219 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_vfsstat()
222 seq_putc(m, ' '); in show_vfsstat()
225 seq_puts(m, "with fstype "); in show_vfsstat()
226 show_type(m, sb); in show_vfsstat()
230 seq_putc(m, ' '); in show_vfsstat()
231 err = sb->s_op->show_stats(m, mnt_path.dentry); in show_vfsstat()
234 seq_putc(m, '\n'); in show_vfsstat()
247 struct seq_file *m; in mounts_open_common() local
276 m = file->private_data; in mounts_open_common()
277 m->poll_event = ns->event; in mounts_open_common()
279 p = m->private; in mounts_open_common()
298 struct seq_file *m = file->private_data; in mounts_release() local
299 struct proc_mounts *p = m->private; in mounts_release()