Home
last modified time | relevance | path

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

123456

/fs/
Dseq_file.c25 static void seq_set_overflow(struct seq_file *m) in seq_set_overflow() argument
27 m->count = m->size; in seq_set_overflow()
91 static int traverse(struct seq_file *m, loff_t offset) in traverse() argument
97 m->version = 0; in traverse()
98 m->index = 0; in traverse()
99 m->count = m->from = 0; in traverse()
103 if (!m->buf) { in traverse()
104 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
105 if (!m->buf) in traverse()
108 p = m->op->start(m, &m->index); 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
79 seq_puts(m, fs_infop->str); in show_mnt_opts()
83 static inline void mangle(struct seq_file *m, const char *s) in mangle() argument
[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) 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
111 size = seq_get_buf(m, &buf); in proc_task_name()
121 seq_commit(m, ret); in proc_task_name()
152 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument
155 struct user_namespace *user_ns = seq_user_ns(m); in task_state()
184 seq_printf(m, "Umask:\t%#04o\n", umask); in task_state()
185 seq_puts(m, "State:\t"); in task_state()
186 seq_puts(m, get_task_state(p)); in task_state()
188 seq_put_decimal_ull(m, "\nTgid:\t", tgid); in task_state()
189 seq_put_decimal_ull(m, "\nNgid:\t", ngid); in task_state()
[all …]
Dmeminfo.c23 void __attribute__((weak)) arch_report_meminfo(struct seq_file *m) in arch_report_meminfo() argument
27 static void show_val_kb(struct seq_file *m, const char *s, unsigned long num) in show_val_kb() argument
29 seq_put_decimal_ull_width(m, s, num << (PAGE_SHIFT - 10), 8); in show_val_kb()
30 seq_write(m, " kB\n", 4); in show_val_kb()
33 static int meminfo_proc_show(struct seq_file *m, void *v) in meminfo_proc_show() argument
59 show_val_kb(m, "MemTotal: ", i.totalram); in meminfo_proc_show()
60 show_val_kb(m, "MemFree: ", i.freeram); in meminfo_proc_show()
61 show_val_kb(m, "MemAvailable: ", available); in meminfo_proc_show()
62 show_val_kb(m, "Buffers: ", i.bufferram); in meminfo_proc_show()
63 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.c29 seq_put_decimal_ull_width(m, str, (val) << (PAGE_SHIFT-10), 8)
30 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument
70 seq_put_decimal_ull_width(m, in task_mem()
72 seq_put_decimal_ull_width(m, in task_mem()
74 seq_put_decimal_ull_width(m, in task_mem()
77 seq_puts(m, " kB\n"); in task_mem()
78 hugetlb_report_usage(m, mm); in task_mem()
126 static void seq_print_vma_name(struct seq_file *m, struct vm_area_struct *vma) in seq_print_vma_name() argument
141 seq_puts(m, "[anon:"); in seq_print_vma_name()
153 seq_puts(m, "<fault>]"); in seq_print_vma_name()
[all …]
Dnommu.c33 static int nommu_region_show(struct seq_file *m, struct vm_region *region) in nommu_region_show() argument
49 seq_setwidth(m, 25 + sizeof(void *) * 6 - 1); in nommu_region_show()
50 seq_printf(m, in nommu_region_show()
62 seq_pad(m, ' '); in nommu_region_show()
63 seq_file_path(m, file, ""); in nommu_region_show()
66 seq_putc(m, '\n'); in nommu_region_show()
74 static int nommu_region_list_show(struct seq_file *m, void *_p) in nommu_region_list_show() argument
78 return nommu_region_show(m, rb_entry(p, struct vm_region, vm_rb)); in nommu_region_list_show()
81 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start() argument
94 static void nommu_region_list_stop(struct seq_file *m, void *v) in nommu_region_list_stop() argument
[all …]
Dkcore.c95 struct kcore_list *m; in get_kcore_size() local
100 list_for_each_entry(m, &kclist_head, list) { in get_kcore_size()
101 try = kc_vaddr_to_offset((size_t)m->addr + m->size); in get_kcore_size()
319 struct kcore_list *m; in read_kcore() local
381 list_for_each_entry(m, &kclist_head, list) { in read_kcore()
384 phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; in read_kcore()
385 if (m->type == KCORE_REMAP) in read_kcore()
386 phdr->p_vaddr = (size_t)m->vaddr; in read_kcore()
388 phdr->p_vaddr = (size_t)m->addr; in read_kcore()
389 if (m->type == KCORE_RAM || m->type == KCORE_REMAP) in read_kcore()
[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/cifs/
Dcifs_debug.c87 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument
91 seq_printf(m, "%s Mounts: %d ", tcon->treeName, tcon->tc_count); in cifs_debug_tcon()
93 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
94 seq_printf(m, "DevInfo: 0x%x Attributes: 0x%x\n\tPathComponentMax: %d Status: %d", in cifs_debug_tcon()
100 seq_puts(m, " type: DISK "); in cifs_debug_tcon()
102 seq_puts(m, " type: CDROM "); in cifs_debug_tcon()
104 seq_printf(m, " type: %d ", dev_type); in cifs_debug_tcon()
106 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
111 seq_printf(m, " Encrypted"); in cifs_debug_tcon()
113 seq_printf(m, " nocase"); in cifs_debug_tcon()
[all …]
/fs/ceph/
Dmdsmap.c20 int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m) in ceph_mdsmap_get_random_mds() argument
26 if (1 == m->m_num_mds && m->m_info[0].state > 0) in ceph_mdsmap_get_random_mds()
30 for (i = 0; i < m->m_num_mds; i++) in ceph_mdsmap_get_random_mds()
31 if (m->m_info[i].state > 0) in ceph_mdsmap_get_random_mds()
39 while (m->m_info[i].state <= 0) in ceph_mdsmap_get_random_mds()
107 struct ceph_mdsmap *m; in ceph_mdsmap_decode() local
114 m = kzalloc(sizeof(*m), GFP_NOFS); in ceph_mdsmap_decode()
115 if (!m) in ceph_mdsmap_decode()
130 m->m_epoch = ceph_decode_32(p); in ceph_mdsmap_decode()
131 m->m_client_epoch = ceph_decode_32(p); in ceph_mdsmap_decode()
[all …]
/fs/erofs/
Dzmap.c109 static int z_erofs_reload_indexes(struct z_erofs_maprecorder *m, in z_erofs_reload_indexes() argument
112 struct super_block *const sb = m->inode->i_sb; in z_erofs_reload_indexes()
113 struct erofs_map_blocks *const map = m->map; in z_erofs_reload_indexes()
118 if (!m->kaddr) in z_erofs_reload_indexes()
119 m->kaddr = kmap_atomic(mpage); in z_erofs_reload_indexes()
123 if (m->kaddr) { in z_erofs_reload_indexes()
124 kunmap_atomic(m->kaddr); in z_erofs_reload_indexes()
125 m->kaddr = NULL; in z_erofs_reload_indexes()
135 m->kaddr = kmap_atomic(mpage); in z_erofs_reload_indexes()
141 static int vle_legacy_load_cluster_from_disk(struct z_erofs_maprecorder *m, in vle_legacy_load_cluster_from_disk() argument
[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 TTL SV NAME\n"); in afs_proc_cells_show()
49 seq_printf(m, "%3u %6lld %2u %s\n", in afs_proc_cells_show()
57 static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) in afs_proc_cells_start() argument
61 return seq_hlist_start_head_rcu(&afs_seq2net(m)->proc_cells, *_pos); in afs_proc_cells_start()
64 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/notify/
Dfdinfo.c25 static void show_fdinfo(struct seq_file *m, struct file *f, in show_fdinfo() argument
26 void (*show)(struct seq_file *m, in show_fdinfo() argument
34 show(m, mark); in show_fdinfo()
35 if (seq_has_overflowed(m)) in show_fdinfo()
42 static void show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument
62 seq_printf(m, "fhandle-bytes:%x fhandle-type:%x f_handle:", in show_mark_fhandle()
66 seq_printf(m, "%02x", (int)f.handle.f_handle[i]); in show_mark_fhandle()
69 static void show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument
76 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument
94 seq_printf(m, "inotify wd:%x ino:%lx sdev:%x mask:%x ignored_mask:%x ", in inotify_fdinfo()
[all …]
/fs/xfs/
Dxfs_health.c290 const struct ioctl_sick_map *m) in xfgeo_health_tick() argument
292 if (checked & m->sick_mask) in xfgeo_health_tick()
293 geo->checked |= m->ioctl_mask; in xfgeo_health_tick()
294 if (sick & m->sick_mask) in xfgeo_health_tick()
295 geo->sick |= m->ioctl_mask; in xfgeo_health_tick()
304 const struct ioctl_sick_map *m; in xfs_fsop_geom_health() local
312 for (m = fs_map; m->sick_mask; m++) in xfs_fsop_geom_health()
313 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
316 for (m = rt_map; m->sick_mask; m++) in xfs_fsop_geom_health()
317 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 …]
Dobject-list.c132 static void *fscache_objlist_start(struct seq_file *m, loff_t *_pos) in fscache_objlist_start() argument
142 static void *fscache_objlist_next(struct seq_file *m, void *v, loff_t *_pos) in fscache_objlist_next() argument
151 static void fscache_objlist_stop(struct seq_file *m, void *v) in fscache_objlist_stop() argument
160 static int fscache_objlist_show(struct seq_file *m, void *v) in fscache_objlist_show() argument
162 struct fscache_objlist_data *data = m->private; in fscache_objlist_show()
170 seq_puts(m, "OBJECT PARENT STAT CHLDN OPS OOP IPR EX READS" in fscache_objlist_show()
175 seq_puts(m, " "); in fscache_objlist_show()
177 seq_puts(m, "OBJECT_KEY"); in fscache_objlist_show()
181 seq_puts(m, ", "); in fscache_objlist_show()
183 seq_puts(m, "AUX_DATA"); in fscache_objlist_show()
[all …]
/fs/quota/
Dquota_v2.c201 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb() local
203 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
204 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
205 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
206 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
207 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
208 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
209 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
210 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
215 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.c26 static int show_version(struct seq_file *m, void *unused) in show_version() argument
28 struct super_block *sb = m->private; in show_version()
39 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/nfs/
Dsuper.c535 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
564 seq_printf(m, ",mountproto=%s", proto ?: "auto"); in nfs_show_mountd_netid()
567 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
578 seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr); in nfs_show_mountd_options()
583 seq_printf(m, ",mountaddr=%pI6c", &sin6->sin6_addr); in nfs_show_mountd_options()
588 seq_puts(m, ",mountaddr=unspecified"); in nfs_show_mountd_options()
592 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
596 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options()
598 nfs_show_mountd_netid(m, nfss, showdefaults); in nfs_show_mountd_options()
602 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options() argument
[all …]
/fs/ntfs/
Dmft.c146 MFT_RECORD *m; in map_mft_record() local
156 m = map_mft_record_page(ni); in map_mft_record()
157 if (!IS_ERR(m)) in map_mft_record()
158 return m; in map_mft_record()
162 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record()
163 return m; in map_mft_record()
238 MFT_RECORD *m; in map_extent_mft_record() local
271 m = map_mft_record(ni); in map_extent_mft_record()
274 if (!IS_ERR(m)) { in map_extent_mft_record()
276 if (likely(le16_to_cpu(m->sequence_number) == seq_no)) { in map_extent_mft_record()
[all …]

123456