Home
last modified time | relevance | path

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

123456

/fs/
Dseq_file.c25 static bool seq_overflow(struct seq_file *m) in seq_overflow() argument
27 return m->count == m->size; in seq_overflow()
30 static void seq_set_overflow(struct seq_file *m) in seq_set_overflow() argument
32 m->count = m->size; in seq_set_overflow()
97 static int traverse(struct seq_file *m, loff_t offset) in traverse() argument
103 m->version = 0; in traverse()
105 m->count = m->from = 0; in traverse()
107 m->index = index; in traverse()
110 if (!m->buf) { in traverse()
111 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
[all …]
Dpnode.c36 struct mount *m = mnt; in get_peer_under_root() local
40 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
41 return m; in get_peer_under_root()
43 m = next_peer(m); in get_peer_under_root()
44 } while (m != mnt); in get_peer_under_root()
57 struct mount *m; in get_dominating_id() local
59 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id()
60 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id()
146 static struct mount *propagation_next(struct mount *m, in propagation_next() argument
150 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in propagation_next()
[all …]
Dproc_namespace.c27 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
[all …]
Dpnode.h14 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) argument
15 #define IS_MNT_SLAVE(m) ((m)->mnt_master) argument
16 #define IS_MNT_NEW(m) (!(m)->mnt_ns) argument
17 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) argument
18 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) argument
19 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) argument
20 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED) argument
21 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED) argument
/fs/proc/
Darray.c90 static inline void task_name(struct seq_file *m, struct task_struct *p) in task_name() argument
99 seq_puts(m, "Name:\t"); in task_name()
100 end = m->buf + m->size; in task_name()
101 buf = m->buf + m->count; in task_name()
125 m->count = buf - m->buf; in task_name()
126 seq_putc(m, '\n'); in task_name()
163 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument
166 struct user_namespace *user_ns = seq_user_ns(m); in task_state()
183 seq_printf(m, in task_state()
207 seq_printf(m, in task_state()
[all …]
Dproc_tty.c26 static void show_tty_range(struct seq_file *m, struct tty_driver *p, in show_tty_range() argument
29 seq_printf(m, "%-20s ", p->driver_name ? p->driver_name : "unknown"); in show_tty_range()
30 seq_printf(m, "/dev/%-8s ", p->name); in show_tty_range()
32 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range()
35 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range()
39 seq_puts(m, "system"); in show_tty_range()
41 seq_puts(m, ":/dev/tty"); in show_tty_range()
43 seq_puts(m, ":console"); in show_tty_range()
45 seq_puts(m, ":vtmaster"); in show_tty_range()
48 seq_puts(m, "console"); in show_tty_range()
[all …]
Dtask_mmu.c20 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument
43 seq_printf(m, in task_mem()
85 static void pad_len_spaces(struct seq_file *m, int len) in pad_len_spaces() argument
90 seq_printf(m, "%*c", len, ' '); in pad_len_spaces()
137 static void seq_print_vma_name(struct seq_file *m, struct vm_area_struct *vma) in seq_print_vma_name() argument
152 seq_puts(m, "[anon:"); in seq_print_vma_name()
164 seq_puts(m, "<fault>]"); in seq_print_vma_name()
171 seq_write(m, kaddr + page_offset, write_len); in seq_print_vma_name()
184 seq_putc(m, ']'); in seq_print_vma_name()
197 static void *m_start(struct seq_file *m, loff_t *pos) in m_start() argument
[all …]
Dtask_nommu.c18 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument
71 seq_printf(m, in task_mem()
126 static void pad_len_spaces(struct seq_file *m, int len) in pad_len_spaces() argument
131 seq_printf(m, "%*c", len, ' '); in pad_len_spaces()
137 static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma, in nommu_vma_show() argument
141 struct proc_maps_private *priv = m->private; in nommu_vma_show()
158 seq_printf(m, in nommu_vma_show()
170 pad_len_spaces(m, len); in nommu_vma_show()
171 seq_path(m, &file->f_path, ""); in nommu_vma_show()
176 pad_len_spaces(m, len); in nommu_vma_show()
[all …]
Dnommu.c37 static int nommu_region_show(struct seq_file *m, struct vm_region *region) in nommu_region_show() argument
53 seq_printf(m, in nommu_region_show()
68 seq_printf(m, "%*c", len, ' '); in nommu_region_show()
69 seq_path(m, &file->f_path, ""); in nommu_region_show()
72 seq_putc(m, '\n'); in nommu_region_show()
80 static int nommu_region_list_show(struct seq_file *m, void *_p) in nommu_region_list_show() argument
84 return nommu_region_show(m, rb_entry(p, struct vm_region, vm_rb)); in nommu_region_list_show()
87 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start() argument
100 static void nommu_region_list_stop(struct seq_file *m, void *v) in nommu_region_list_stop() argument
105 static void *nommu_region_list_next(struct seq_file *m, void *v, loff_t *pos) in nommu_region_list_next() argument
/fs/ceph/
Dmdsmap.c19 int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m) in ceph_mdsmap_get_random_mds() argument
25 if (1 == m->m_max_mds && m->m_info[0].state > 0) in ceph_mdsmap_get_random_mds()
29 for (i = 0; i < m->m_max_mds; i++) in ceph_mdsmap_get_random_mds()
30 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()
53 struct ceph_mdsmap *m; in ceph_mdsmap_decode() local
59 m = kzalloc(sizeof(*m), GFP_NOFS); in ceph_mdsmap_decode()
60 if (m == NULL) in ceph_mdsmap_decode()
70 m->m_epoch = ceph_decode_32(p); in ceph_mdsmap_decode()
71 m->m_client_epoch = ceph_decode_32(p); in ceph_mdsmap_decode()
[all …]
/fs/notify/
Dvfsmount_mark.c37 struct mount *m = real_mount(mnt); in fsnotify_clear_marks_by_mount() local
41 hlist_for_each_entry_safe(mark, n, &m->mnt_fsnotify_marks, m.m_list) { in fsnotify_clear_marks_by_mount()
42 list_add(&mark->m.free_m_list, &free_list); in fsnotify_clear_marks_by_mount()
43 hlist_del_init_rcu(&mark->m.m_list); in fsnotify_clear_marks_by_mount()
48 list_for_each_entry_safe(mark, lmark, &free_list, m.free_m_list) { in fsnotify_clear_marks_by_mount()
72 struct mount *m = real_mount(mnt); in fsnotify_recalc_vfsmount_mask_locked() local
78 hlist_for_each_entry(mark, &m->mnt_fsnotify_marks, m.m_list) in fsnotify_recalc_vfsmount_mask_locked()
80 m->mnt_fsnotify_mask = new_mask; in fsnotify_recalc_vfsmount_mask_locked()
96 struct vfsmount *mnt = mark->m.mnt; in fsnotify_destroy_vfsmount_mark()
103 hlist_del_init_rcu(&mark->m.m_list); in fsnotify_destroy_vfsmount_mark()
[all …]
Dfdinfo.c23 static int show_fdinfo(struct seq_file *m, struct file *f, in show_fdinfo() argument
24 int (*show)(struct seq_file *m, struct fsnotify_mark *mark)) in show_fdinfo() argument
32 ret = show(m, mark); in show_fdinfo()
41 static int show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument
61 ret = seq_printf(m, "fhandle-bytes:%x fhandle-type:%x f_handle:", in show_mark_fhandle()
65 ret |= seq_printf(m, "%02x", (int)f.handle.f_handle[i]); in show_mark_fhandle()
70 static int show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument
78 static int inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument
90 ret = seq_printf(m, "inotify wd:%x ino:%lx sdev:%x " in inotify_fdinfo()
95 ret |= show_mark_fhandle(m, inode); in inotify_fdinfo()
[all …]
/fs/cifs/
Dcifs_debug.c128 static int cifs_debug_data_proc_show(struct seq_file *m, void *v) in cifs_debug_data_proc_show() argument
138 seq_puts(m, in cifs_debug_data_proc_show()
141 seq_printf(m, "CIFS Version %s\n", CIFS_VERSION); in cifs_debug_data_proc_show()
142 seq_printf(m, "Features:"); in cifs_debug_data_proc_show()
144 seq_printf(m, " dfs"); in cifs_debug_data_proc_show()
147 seq_printf(m, " fscache"); in cifs_debug_data_proc_show()
150 seq_printf(m, " lanman"); in cifs_debug_data_proc_show()
153 seq_printf(m, " posix"); in cifs_debug_data_proc_show()
156 seq_printf(m, " spnego"); in cifs_debug_data_proc_show()
159 seq_printf(m, " xattr"); in cifs_debug_data_proc_show()
[all …]
/fs/quota/
Dquota_v2.c177 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb() local
179 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
180 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
181 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
182 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
183 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
184 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
185 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
186 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
191 m->dqb_itime = 0; in v2r0_disk2memdqb()
[all …]
Dquota_v1.c31 static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) in v1_disk2mem_dqblk() argument
33 m->dqb_ihardlimit = d->dqb_ihardlimit; in v1_disk2mem_dqblk()
34 m->dqb_isoftlimit = d->dqb_isoftlimit; in v1_disk2mem_dqblk()
35 m->dqb_curinodes = d->dqb_curinodes; in v1_disk2mem_dqblk()
36 m->dqb_bhardlimit = v1_qbtos(d->dqb_bhardlimit); in v1_disk2mem_dqblk()
37 m->dqb_bsoftlimit = v1_qbtos(d->dqb_bsoftlimit); in v1_disk2mem_dqblk()
38 m->dqb_curspace = v1_qbtos(d->dqb_curblocks); in v1_disk2mem_dqblk()
39 m->dqb_itime = d->dqb_itime; in v1_disk2mem_dqblk()
40 m->dqb_btime = d->dqb_btime; in v1_disk2mem_dqblk()
43 static void v1_mem2disk_dqblk(struct v1_disk_dqblk *d, struct mem_dqblk *m) in v1_mem2disk_dqblk() argument
[all …]
/fs/fscache/
Dstats.c136 static int fscache_stats_show(struct seq_file *m, void *v) in fscache_stats_show() argument
138 seq_puts(m, "FS-Cache statistics\n"); in fscache_stats_show()
140 seq_printf(m, "Cookies: idx=%u dat=%u spc=%u\n", in fscache_stats_show()
145 seq_printf(m, "Objects: alc=%u nal=%u avl=%u ded=%u\n", in fscache_stats_show()
150 seq_printf(m, "ChkAux : non=%u ok=%u upd=%u obs=%u\n", in fscache_stats_show()
156 seq_printf(m, "Pages : mrk=%u unc=%u\n", in fscache_stats_show()
160 seq_printf(m, "Acquire: n=%u nul=%u noc=%u ok=%u nbf=%u" in fscache_stats_show()
169 seq_printf(m, "Lookups: n=%u neg=%u pos=%u crt=%u tmo=%u\n", in fscache_stats_show()
176 seq_printf(m, "Invals : n=%u run=%u\n", in fscache_stats_show()
180 seq_printf(m, "Updates: n=%u nul=%u run=%u\n", in fscache_stats_show()
[all …]
Dobject-list.c137 static void *fscache_objlist_start(struct seq_file *m, loff_t *_pos) in fscache_objlist_start() argument
147 static void *fscache_objlist_next(struct seq_file *m, void *v, loff_t *_pos) in fscache_objlist_next() argument
156 static void fscache_objlist_stop(struct seq_file *m, void *v) in fscache_objlist_stop() argument
165 static int fscache_objlist_show(struct seq_file *m, void *v) in fscache_objlist_show() argument
167 struct fscache_objlist_data *data = m->private; in fscache_objlist_show()
176 seq_puts(m, "OBJECT PARENT STAT CHLDN OPS OOP IPR EX READS" in fscache_objlist_show()
181 seq_puts(m, " "); in fscache_objlist_show()
183 seq_puts(m, "OBJECT_KEY"); in fscache_objlist_show()
187 seq_puts(m, ", "); in fscache_objlist_show()
189 seq_puts(m, "AUX_DATA"); in fscache_objlist_show()
[all …]
/fs/afs/
Dproc.c27 static int afs_proc_cells_show(struct seq_file *m, void *v);
71 static int afs_proc_cell_volumes_show(struct seq_file *m, void *v);
96 static int afs_proc_cell_vlservers_show(struct seq_file *m, void *v);
120 static int afs_proc_cell_servers_show(struct seq_file *m, void *v);
185 struct seq_file *m; in afs_proc_cells_open() local
192 m = file->private_data; in afs_proc_cells_open()
193 m->private = PDE_DATA(inode); in afs_proc_cells_open()
202 static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) in afs_proc_cells_start() argument
228 static int afs_proc_cells_show(struct seq_file *m, void *v) in afs_proc_cells_show() argument
234 seq_puts(m, "USE NAME\n"); in afs_proc_cells_show()
[all …]
/fs/reiserfs/
Dprocfs.c26 static int show_version(struct seq_file *m, struct super_block *sb) in show_version() argument
38 seq_printf(m, "%s format\twith checks %s\n", format, in show_version()
69 static int show_super(struct seq_file *m, struct super_block *sb) in show_super() argument
73 seq_printf(m, "state: \t%s\n" in show_super()
131 static int show_per_level(struct seq_file *m, struct super_block *sb) in show_per_level() argument
136 seq_printf(m, "level\t" in show_per_level()
152 seq_printf(m, "%i\t" in show_per_level()
189 static int show_bitmap(struct seq_file *m, struct super_block *sb) in show_bitmap() argument
193 seq_printf(m, "free_block: %lu\n" in show_bitmap()
221 static int show_on_disk_super(struct seq_file *m, struct super_block *sb) in show_on_disk_super() argument
[all …]
/fs/xfs/
Dxfs_stats.c32 static int xfs_stat_proc_show(struct seq_file *m, void *v) in xfs_stat_proc_show() argument
68 seq_printf(m, "%s", xstats[i].desc); in xfs_stat_proc_show()
71 seq_printf(m, " %u", counter_val(j)); in xfs_stat_proc_show()
72 seq_putc(m, '\n'); in xfs_stat_proc_show()
81 seq_printf(m, "xpc %Lu %Lu %Lu\n", in xfs_stat_proc_show()
83 seq_printf(m, "debug %u\n", in xfs_stat_proc_show()
107 static int xqm_proc_show(struct seq_file *m, void *v) in xqm_proc_show() argument
110 seq_printf(m, "%d\t%d\t%d\t%u\n", in xqm_proc_show()
132 static int xqmstat_proc_show(struct seq_file *m, void *v) in xqmstat_proc_show() argument
136 seq_printf(m, "qm"); in xqmstat_proc_show()
[all …]
/fs/nfsd/
Dexport.c169 static int expkey_show(struct seq_file *m, in expkey_show() argument
177 seq_puts(m, "#domain fsidtype fsid [path]\n"); in expkey_show()
181 seq_printf(m, "%s %d 0x", ek->ek_client->name, in expkey_show()
184 seq_printf(m, "%08x", ek->ek_fsid[i]); in expkey_show()
187 seq_printf(m, " "); in expkey_show()
188 seq_path(m, &ek->ek_path, "\\ \t\n"); in expkey_show()
190 seq_printf(m, "\n"); in expkey_show()
610 static void exp_flags(struct seq_file *m, int flag, int fsid,
612 static void show_secinfo(struct seq_file *m, struct svc_export *exp);
614 static int svc_export_show(struct seq_file *m, in svc_export_show() argument
[all …]
/fs/nfs/
Dsuper.c521 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
526 seq_printf(m, ",mountproto="); in nfs_show_mountd_netid()
531 seq_printf(m, RPCBIND_NETID_UDP); in nfs_show_mountd_netid()
534 seq_printf(m, RPCBIND_NETID_TCP); in nfs_show_mountd_netid()
538 seq_printf(m, "auto"); in nfs_show_mountd_netid()
544 seq_printf(m, RPCBIND_NETID_UDP6); in nfs_show_mountd_netid()
547 seq_printf(m, RPCBIND_NETID_TCP6); in nfs_show_mountd_netid()
551 seq_printf(m, "auto"); in nfs_show_mountd_netid()
556 seq_printf(m, "auto"); in nfs_show_mountd_netid()
560 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
[all …]
/fs/ntfs/
Dmft.c157 MFT_RECORD *m; in map_mft_record() local
167 m = map_mft_record_page(ni); in map_mft_record()
168 if (likely(!IS_ERR(m))) in map_mft_record()
169 return m; in map_mft_record()
173 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record()
174 return m; in map_mft_record()
249 MFT_RECORD *m; in map_extent_mft_record() local
282 m = map_mft_record(ni); in map_extent_mft_record()
285 if (likely(!IS_ERR(m))) { in map_extent_mft_record()
287 if (likely(le16_to_cpu(m->sequence_number) == seq_no)) { in map_extent_mft_record()
[all …]
/fs/ecryptfs/
Dsuper.c146 static int ecryptfs_show_options(struct seq_file *m, struct dentry *root) in ecryptfs_show_options() argument
158 seq_printf(m, ",ecryptfs_fnek_sig=%s", walker->sig); in ecryptfs_show_options()
160 seq_printf(m, ",ecryptfs_sig=%s", walker->sig); in ecryptfs_show_options()
164 seq_printf(m, ",ecryptfs_cipher=%s", in ecryptfs_show_options()
168 seq_printf(m, ",ecryptfs_key_bytes=%zd", in ecryptfs_show_options()
171 seq_printf(m, ",ecryptfs_passthrough"); in ecryptfs_show_options()
173 seq_printf(m, ",ecryptfs_xattr_metadata"); in ecryptfs_show_options()
175 seq_printf(m, ",ecryptfs_encrypted_view"); in ecryptfs_show_options()
177 seq_printf(m, ",ecryptfs_unlink_sigs"); in ecryptfs_show_options()
179 seq_printf(m, ",ecryptfs_mount_auth_tok_only"); in ecryptfs_show_options()
/fs/ncpfs/
Dinode.c167 inode->i_mode = server->m.dir_mode; in ncp_update_attrs()
174 inode->i_mode = server->m.file_mode; in ncp_update_attrs()
178 if ((server->m.flags & (NCP_MOUNT_EXTRAS|NCP_MOUNT_SYMLINKS)) in ncp_update_attrs()
182 if (server->m.flags & NCP_MOUNT_SYMLINKS) { in ncp_update_attrs()
192 if (server->m.flags & NCP_MOUNT_EXTRAS) in ncp_update_attrs()
196 if (server->m.flags & NCP_MOUNT_EXTRAS) in ncp_update_attrs()
236 inode->i_uid = server->m.uid; in ncp_set_attr()
237 inode->i_gid = server->m.gid; in ncp_set_attr()
335 if (!uid_eq(server->m.uid, GLOBAL_ROOT_UID)) in ncp_show_options()
337 from_kuid_munged(&init_user_ns, server->m.uid)); in ncp_show_options()
[all …]

123456