Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 165) sorted by relevance

1234567

/fs/
Dseq_file.c28 static void seq_set_overflow(struct seq_file *m) in seq_set_overflow() argument
30 m->count = m->size; in seq_set_overflow()
90 static int traverse(struct seq_file *m, loff_t offset) in traverse() argument
96 m->index = 0; in traverse()
97 m->count = m->from = 0; in traverse()
101 if (!m->buf) { in traverse()
102 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
103 if (!m->buf) in traverse()
106 p = m->op->start(m, &m->index); in traverse()
111 error = m->op->show(m, p); in traverse()
[all …]
Dpnode.c41 struct mount *m = mnt; in get_peer_under_root() local
45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
46 return m; in get_peer_under_root()
48 m = next_peer(m); in get_peer_under_root()
49 } while (m != mnt); in get_peer_under_root()
62 struct mount *m; in get_dominating_id() local
64 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id()
65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id()
94 struct mount *m; in do_make_slave() local
100 for (m = master = next_peer(mnt); m != mnt; m = next_peer(m)) { in do_make_slave()
[all …]
Dproc_namespace.c23 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 seq_puts(m, ",idmapped"); in show_mnt_opts()
[all …]
Dpnode.h13 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) argument
14 #define IS_MNT_SLAVE(m) ((m)->mnt_master) argument
15 #define IS_MNT_NEW(m) (!(m)->mnt_ns || is_anon_ns((m)->mnt_ns)) argument
16 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) argument
17 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) argument
18 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) argument
19 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED) argument
20 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED) argument
21 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED) argument
/fs/proc/
Darray.c99 void proc_task_name(struct seq_file *m, struct task_struct *p, bool escape) in proc_task_name() argument
109 seq_escape_str(m, tcomm, ESCAPE_SPACE | ESCAPE_SPECIAL, "\n\\"); in proc_task_name()
111 seq_printf(m, "%.64s", tcomm); in proc_task_name()
142 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument
145 struct user_namespace *user_ns = seq_user_ns(m); in task_state()
174 seq_printf(m, "Umask:\t%#04o\n", umask); in task_state()
175 seq_puts(m, "State:\t"); in task_state()
176 seq_puts(m, get_task_state(p)); in task_state()
178 seq_put_decimal_ull(m, "\nTgid:\t", tgid); in task_state()
179 seq_put_decimal_ull(m, "\nNgid:\t", ngid); in task_state()
[all …]
Dmeminfo.c22 void __attribute__((weak)) arch_report_meminfo(struct seq_file *m) in arch_report_meminfo() argument
26 static void show_val_kb(struct seq_file *m, const char *s, unsigned long num) in show_val_kb() argument
28 seq_put_decimal_ull_width(m, s, num << (PAGE_SHIFT - 10), 8); in show_val_kb()
29 seq_write(m, " kB\n", 4); in show_val_kb()
32 static int meminfo_proc_show(struct seq_file *m, void *v) in meminfo_proc_show() argument
58 show_val_kb(m, "MemTotal: ", i.totalram); in meminfo_proc_show()
59 show_val_kb(m, "MemFree: ", i.freeram); in meminfo_proc_show()
60 show_val_kb(m, "MemAvailable: ", available); in meminfo_proc_show()
61 show_val_kb(m, "Buffers: ", i.bufferram); in meminfo_proc_show()
62 show_val_kb(m, "Cached: ", cached); in meminfo_proc_show()
[all …]
Dproc_tty.c28 static void show_tty_range(struct seq_file *m, struct tty_driver *p, in show_tty_range() argument
31 seq_printf(m, "%-20s ", p->driver_name ? p->driver_name : "unknown"); in show_tty_range()
32 seq_printf(m, "/dev/%-8s ", p->name); in show_tty_range()
34 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range()
37 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range()
41 seq_puts(m, "system"); in show_tty_range()
43 seq_puts(m, ":/dev/tty"); in show_tty_range()
45 seq_puts(m, ":console"); in show_tty_range()
47 seq_puts(m, ":vtmaster"); in show_tty_range()
50 seq_puts(m, "console"); in show_tty_range()
[all …]
Dtask_mmu.c31 seq_put_decimal_ull_width(m, str, (val) << (PAGE_SHIFT-10), 8)
32 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument
72 seq_put_decimal_ull_width(m, in task_mem()
74 seq_put_decimal_ull_width(m, in task_mem()
76 seq_put_decimal_ull_width(m, in task_mem()
79 seq_puts(m, " kB\n"); in task_mem()
80 hugetlb_report_usage(m, mm); in task_mem()
128 static void *m_start(struct seq_file *m, loff_t *ppos) in m_start() argument
130 struct proc_maps_private *priv = m->private; in m_start()
167 static void *m_next(struct seq_file *m, void *v, loff_t *ppos) in m_next() argument
[all …]
Dnommu.c32 static int nommu_region_show(struct seq_file *m, struct vm_region *region) in nommu_region_show() argument
48 seq_setwidth(m, 25 + sizeof(void *) * 6 - 1); in nommu_region_show()
49 seq_printf(m, in nommu_region_show()
61 seq_pad(m, ' '); in nommu_region_show()
62 seq_file_path(m, file, ""); in nommu_region_show()
65 seq_putc(m, '\n'); in nommu_region_show()
73 static int nommu_region_list_show(struct seq_file *m, void *_p) in nommu_region_list_show() argument
77 return nommu_region_show(m, rb_entry(p, struct vm_region, vm_rb)); in nommu_region_list_show()
80 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start() argument
93 static void nommu_region_list_stop(struct seq_file *m, void *v) in nommu_region_list_stop() argument
[all …]
Dconsoles.c15 static int show_console_dev(struct seq_file *m, void *v) in show_console_dev() argument
48 seq_setwidth(m, 21 - 1); in show_console_dev()
49 seq_printf(m, "%s%d", con->name, con->index); in show_console_dev()
50 seq_pad(m, ' '); in show_console_dev()
51 seq_printf(m, "%c%c%c (%s)", con->read ? 'R' : '-', in show_console_dev()
55 seq_printf(m, " %4d:%d", MAJOR(dev), MINOR(dev)); in show_console_dev()
57 seq_putc(m, '\n'); in show_console_dev()
61 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument
74 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument
81 static void c_stop(struct seq_file *m, void *v) in c_stop() argument
/fs/ceph/
Dmetric.c25 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics() local
26 u64 nr_caps = atomic64_read(&m->total_caps); in ceph_mdsc_send_metrics()
54 cap->hit = cpu_to_le64(percpu_counter_sum(&m->i_caps_hit)); in ceph_mdsc_send_metrics()
55 cap->mis = cpu_to_le64(percpu_counter_sum(&m->i_caps_mis)); in ceph_mdsc_send_metrics()
65 sum = m->read_latency_sum; in ceph_mdsc_send_metrics()
77 sum = m->write_latency_sum; in ceph_mdsc_send_metrics()
89 sum = m->metadata_latency_sum; in ceph_mdsc_send_metrics()
101 dlease->hit = cpu_to_le64(percpu_counter_sum(&m->d_lease_hit)); in ceph_mdsc_send_metrics()
102 dlease->mis = cpu_to_le64(percpu_counter_sum(&m->d_lease_mis)); in ceph_mdsc_send_metrics()
103 dlease->total = cpu_to_le64(atomic64_read(&m->total_dentries)); in ceph_mdsc_send_metrics()
[all …]
Dmdsmap.c17 (m->m_info[i].state > 0 && ignore_laggy ? true : !m->m_info[i].laggy)
19 static int __mdsmap_get_random_mds(struct ceph_mdsmap *m, bool ignore_laggy) in __mdsmap_get_random_mds() argument
25 for (i = 0; i < m->possible_max_rank; i++) in __mdsmap_get_random_mds()
33 for (j = 0, i = 0; i < m->possible_max_rank; i++) { in __mdsmap_get_random_mds()
46 int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m) in ceph_mdsmap_get_random_mds() argument
50 mds = __mdsmap_get_random_mds(m, false); in ceph_mdsmap_get_random_mds()
51 if (mds == m->possible_max_rank || mds == -1) in ceph_mdsmap_get_random_mds()
52 mds = __mdsmap_get_random_mds(m, true); in ceph_mdsmap_get_random_mds()
54 return mds == m->possible_max_rank ? -1 : mds; in ceph_mdsmap_get_random_mds()
119 struct ceph_mdsmap *m; in ceph_mdsmap_decode() local
[all …]
Ddebugfs.c153 struct ceph_client_metric *m = &mdsc->metric; in metric_show() local
158 sum = percpu_counter_sum(&m->total_inodes); in metric_show()
162 atomic64_read(&m->opened_files), sum); in metric_show()
164 atomic64_read(&m->total_caps), sum); in metric_show()
166 percpu_counter_sum(&m->opened_inodes), sum); in metric_show()
172 spin_lock(&m->read_metric_lock); in metric_show()
173 total = m->total_reads; in metric_show()
174 sum = m->read_latency_sum; in metric_show()
176 min = m->read_latency_min; in metric_show()
177 max = m->read_latency_max; in metric_show()
[all …]
/fs/erofs/
Dzmap.c122 static int z_erofs_reload_indexes(struct z_erofs_maprecorder *m, in z_erofs_reload_indexes() argument
125 struct super_block *const sb = m->inode->i_sb; in z_erofs_reload_indexes()
126 struct erofs_map_blocks *const map = m->map; in z_erofs_reload_indexes()
131 if (!m->kaddr) in z_erofs_reload_indexes()
132 m->kaddr = kmap_atomic(mpage); in z_erofs_reload_indexes()
136 if (m->kaddr) { in z_erofs_reload_indexes()
137 kunmap_atomic(m->kaddr); in z_erofs_reload_indexes()
138 m->kaddr = NULL; in z_erofs_reload_indexes()
148 m->kaddr = kmap_atomic(mpage); in z_erofs_reload_indexes()
154 static int legacy_load_cluster_from_disk(struct z_erofs_maprecorder *m, in legacy_load_cluster_from_disk() argument
[all …]
/fs/cifs/
Dcifs_debug.c86 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument
90 seq_printf(m, "%s Mounts: %d ", tcon->treeName, tcon->tc_count); in cifs_debug_tcon()
92 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
93 seq_printf(m, "DevInfo: 0x%x Attributes: 0x%x\n\tPathComponentMax: %d Status: %d", in cifs_debug_tcon()
99 seq_puts(m, " type: DISK "); in cifs_debug_tcon()
101 seq_puts(m, " type: CDROM "); in cifs_debug_tcon()
103 seq_printf(m, " type: %d ", dev_type); in cifs_debug_tcon()
105 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
110 seq_printf(m, " Encrypted"); in cifs_debug_tcon()
112 seq_printf(m, " nocase"); in cifs_debug_tcon()
[all …]
/fs/afs/
Dproc.c21 static inline struct afs_net *afs_seq2net(struct seq_file *m) in afs_seq2net() argument
23 return afs_net(seq_file_net(m)); in afs_seq2net()
26 static inline struct afs_net *afs_seq2net_single(struct seq_file *m) in afs_seq2net_single() argument
28 return afs_net(seq_file_single_net(m)); in afs_seq2net_single()
34 static int afs_proc_cells_show(struct seq_file *m, void *v) in afs_proc_cells_show() argument
41 seq_puts(m, "USE ACT TTL SV ST NAME\n"); in afs_proc_cells_show()
49 seq_printf(m, "%3u %3u %6lld %2u %2u %s\n", in afs_proc_cells_show()
59 static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) in afs_proc_cells_start() argument
63 return seq_hlist_start_head_rcu(&afs_seq2net(m)->proc_cells, *_pos); in afs_proc_cells_start()
66 static void *afs_proc_cells_next(struct seq_file *m, void *v, loff_t *pos) in afs_proc_cells_next() argument
[all …]
/fs/orangefs/
Dorangefs-bufmap.c28 static void install(struct slot_map *m, int count, unsigned long *map) in install() argument
30 spin_lock(&m->q.lock); in install()
31 m->c = m->count = count; in install()
32 m->map = map; in install()
33 wake_up_all_locked(&m->q); in install()
34 spin_unlock(&m->q.lock); in install()
37 static void mark_killed(struct slot_map *m) in mark_killed() argument
39 spin_lock(&m->q.lock); in mark_killed()
40 m->c -= m->count + 1; in mark_killed()
41 spin_unlock(&m->q.lock); in mark_killed()
[all …]
/fs/nfs/
Dsuper.c335 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
364 seq_printf(m, ",mountproto=%s", proto ?: "auto"); in nfs_show_mountd_netid()
367 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
378 seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr); in nfs_show_mountd_options()
383 seq_printf(m, ",mountaddr=%pI6c", &sin6->sin6_addr); in nfs_show_mountd_options()
388 seq_puts(m, ",mountaddr=unspecified"); in nfs_show_mountd_options()
392 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
396 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options()
398 nfs_show_mountd_netid(m, nfss, showdefaults); in nfs_show_mountd_options()
402 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
[all …]
/fs/notify/
Dfdinfo.c24 static void show_fdinfo(struct seq_file *m, struct file *f, in show_fdinfo() argument
25 void (*show)(struct seq_file *m, in show_fdinfo() argument
33 show(m, mark); in show_fdinfo()
34 if (seq_has_overflowed(m)) in show_fdinfo()
41 static void show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument
61 seq_printf(m, "fhandle-bytes:%x fhandle-type:%x f_handle:", in show_mark_fhandle()
65 seq_printf(m, "%02x", (int)f.handle.f_handle[i]); in show_mark_fhandle()
68 static void show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument
75 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument
86 seq_printf(m, "inotify wd:%x ino:%lx sdev:%x mask:%x ignored_mask:0 ", in inotify_fdinfo()
[all …]
/fs/xfs/
Dxfs_health.c297 const struct ioctl_sick_map *m) in xfgeo_health_tick() argument
299 if (checked & m->sick_mask) in xfgeo_health_tick()
300 geo->checked |= m->ioctl_mask; in xfgeo_health_tick()
301 if (sick & m->sick_mask) in xfgeo_health_tick()
302 geo->sick |= m->ioctl_mask; in xfgeo_health_tick()
311 const struct ioctl_sick_map *m; in xfs_fsop_geom_health() local
319 for (m = fs_map; m->sick_mask; m++) in xfs_fsop_geom_health()
320 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
323 for (m = rt_map; m->sick_mask; m++) in xfs_fsop_geom_health()
324 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
[all …]
/fs/fscache/
Dstats.c137 int fscache_stats_show(struct seq_file *m, void *v) in fscache_stats_show() argument
139 seq_puts(m, "FS-Cache statistics\n"); in fscache_stats_show()
141 seq_printf(m, "Cookies: idx=%u dat=%u spc=%u\n", in fscache_stats_show()
146 seq_printf(m, "Objects: alc=%u nal=%u avl=%u ded=%u\n", in fscache_stats_show()
151 seq_printf(m, "ChkAux : non=%u ok=%u upd=%u obs=%u\n", in fscache_stats_show()
157 seq_printf(m, "Pages : mrk=%u unc=%u\n", in fscache_stats_show()
161 seq_printf(m, "Acquire: n=%u nul=%u noc=%u ok=%u nbf=%u" in fscache_stats_show()
170 seq_printf(m, "Lookups: n=%u neg=%u pos=%u crt=%u tmo=%u\n", in fscache_stats_show()
177 seq_printf(m, "Invals : n=%u run=%u\n", in fscache_stats_show()
181 seq_printf(m, "Updates: n=%u nul=%u run=%u\n", in fscache_stats_show()
[all …]
/fs/quota/
Dquota_v2.c223 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb() local
225 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
226 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
227 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
228 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
229 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
230 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
231 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
232 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
237 m->dqb_itime = 0; in v2r0_disk2memdqb()
[all …]
Dquota_v1.c32 static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) in v1_disk2mem_dqblk() argument
34 m->dqb_ihardlimit = d->dqb_ihardlimit; in v1_disk2mem_dqblk()
35 m->dqb_isoftlimit = d->dqb_isoftlimit; in v1_disk2mem_dqblk()
36 m->dqb_curinodes = d->dqb_curinodes; in v1_disk2mem_dqblk()
37 m->dqb_bhardlimit = v1_qbtos(d->dqb_bhardlimit); in v1_disk2mem_dqblk()
38 m->dqb_bsoftlimit = v1_qbtos(d->dqb_bsoftlimit); in v1_disk2mem_dqblk()
39 m->dqb_curspace = v1_qbtos(d->dqb_curblocks); in v1_disk2mem_dqblk()
40 m->dqb_itime = d->dqb_itime; in v1_disk2mem_dqblk()
41 m->dqb_btime = d->dqb_btime; in v1_disk2mem_dqblk()
44 static void v1_mem2disk_dqblk(struct v1_disk_dqblk *d, struct mem_dqblk *m) in v1_mem2disk_dqblk() argument
[all …]
/fs/reiserfs/
Dprocfs.c27 static int show_version(struct seq_file *m, void *unused) in show_version() argument
29 struct super_block *sb = m->private; in show_version()
40 seq_printf(m, "%s format\twith checks %s\n", format, in show_version()
70 static int show_super(struct seq_file *m, void *unused) in show_super() argument
72 struct super_block *sb = m->private; in show_super()
75 seq_printf(m, "state: \t%s\n" in show_super()
133 static int show_per_level(struct seq_file *m, void *unused) in show_per_level() argument
135 struct super_block *sb = m->private; in show_per_level()
139 seq_printf(m, "level\t" in show_per_level()
155 seq_printf(m, "%i\t" in show_per_level()
[all …]
/fs/nfsd/
Dexport.c177 static int expkey_show(struct seq_file *m, in expkey_show() argument
185 seq_puts(m, "#domain fsidtype fsid [path]\n"); in expkey_show()
189 seq_printf(m, "%s %d 0x", ek->ek_client->name, in expkey_show()
192 seq_printf(m, "%08x", ek->ek_fsid[i]); in expkey_show()
195 seq_printf(m, " "); in expkey_show()
196 seq_path(m, &ek->ek_path, "\\ \t\n"); in expkey_show()
198 seq_printf(m, "\n"); in expkey_show()
714 static void exp_flags(struct seq_file *m, int flag, int fsid,
716 static void show_secinfo(struct seq_file *m, struct svc_export *exp);
718 static int is_export_stats_file(struct seq_file *m) in is_export_stats_file() argument
[all …]

1234567