Lines Matching refs:m
27 if (p->m.poll_event != ns->event) { in mounts_poll()
28 p->m.poll_event = ns->event; in mounts_poll()
41 static int show_sb_opts(struct seq_file *m, struct super_block *sb) in show_sb_opts() argument
53 seq_puts(m, fs_infop->str); in show_sb_opts()
56 return security_sb_show_options(m, sb); in show_sb_opts()
59 static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) in show_mnt_opts() argument
74 seq_puts(m, fs_infop->str); in show_mnt_opts()
78 static inline void mangle(struct seq_file *m, const char *s) in mangle() argument
80 seq_escape(m, s, " \t\n\\"); in mangle()
83 static void show_type(struct seq_file *m, struct super_block *sb) in show_type() argument
85 mangle(m, sb->s_type->name); in show_type()
87 seq_putc(m, '.'); in show_type()
88 mangle(m, sb->s_subtype); in show_type()
92 static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt) in show_vfsmnt() argument
100 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsmnt()
104 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt()
106 seq_putc(m, ' '); in show_vfsmnt()
107 seq_path(m, &mnt_path, " \t\n\\"); in show_vfsmnt()
108 seq_putc(m, ' '); in show_vfsmnt()
109 show_type(m, sb); in show_vfsmnt()
110 seq_puts(m, __mnt_is_readonly(mnt) ? " ro" : " rw"); in show_vfsmnt()
111 err = show_sb_opts(m, sb); in show_vfsmnt()
114 show_mnt_opts(m, mnt); in show_vfsmnt()
116 err = sb->s_op->show_options2(mnt, m, mnt_path.dentry); in show_vfsmnt()
118 err = sb->s_op->show_options(m, mnt_path.dentry); in show_vfsmnt()
119 seq_puts(m, " 0 0\n"); in show_vfsmnt()
124 static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt) in show_mountinfo() argument
126 struct proc_mounts *p = proc_mounts(m); in show_mountinfo()
133 seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, in show_mountinfo()
136 err = sb->s_op->show_path(m, mnt->mnt_root); in show_mountinfo()
138 seq_dentry(m, mnt->mnt_root, " \t\n\\"); in show_mountinfo()
141 seq_putc(m, ' '); in show_mountinfo()
144 err = seq_path_root(m, &mnt_path, &root, " \t\n\\"); in show_mountinfo()
148 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo()
149 show_mnt_opts(m, mnt); in show_mountinfo()
153 seq_printf(m, " shared:%i", r->mnt_group_id); in show_mountinfo()
157 seq_printf(m, " master:%i", master); in show_mountinfo()
159 seq_printf(m, " propagate_from:%i", dom); in show_mountinfo()
162 seq_puts(m, " unbindable"); in show_mountinfo()
165 seq_puts(m, " - "); in show_mountinfo()
166 show_type(m, sb); in show_mountinfo()
167 seq_putc(m, ' '); in show_mountinfo()
169 err = sb->s_op->show_devname(m, mnt->mnt_root); in show_mountinfo()
171 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_mountinfo()
174 seq_puts(m, sb->s_flags & MS_RDONLY ? " ro" : " rw"); in show_mountinfo()
175 err = show_sb_opts(m, sb); in show_mountinfo()
179 err = sb->s_op->show_options2(mnt, m, mnt->mnt_root); in show_mountinfo()
181 err = sb->s_op->show_options(m, mnt->mnt_root); in show_mountinfo()
182 seq_putc(m, '\n'); in show_mountinfo()
187 static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt) in show_vfsstat() argument
196 seq_puts(m, "device "); in show_vfsstat()
197 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsstat()
200 seq_puts(m, "device "); in show_vfsstat()
201 mangle(m, r->mnt_devname); in show_vfsstat()
203 seq_puts(m, "no device"); in show_vfsstat()
207 seq_puts(m, " mounted on "); in show_vfsstat()
208 seq_path(m, &mnt_path, " \t\n\\"); in show_vfsstat()
209 seq_putc(m, ' '); in show_vfsstat()
212 seq_puts(m, "with fstype "); in show_vfsstat()
213 show_type(m, sb); in show_vfsstat()
217 seq_putc(m, ' '); in show_vfsstat()
219 err = sb->s_op->show_stats(m, mnt_path.dentry); in show_vfsstat()
222 seq_putc(m, '\n'); in show_vfsstat()
270 file->private_data = &p->m; in mounts_open_common()
277 p->m.poll_event = ns->event; in mounts_open_common()