/fs/ |
D | seq_file.c | 65 static int traverse(struct seq_file *m, loff_t offset) in traverse() argument 71 m->version = 0; in traverse() 73 m->count = m->from = 0; in traverse() 75 m->index = index; in traverse() 78 if (!m->buf) { in traverse() 79 m->buf = kmalloc(m->size = PAGE_SIZE, GFP_KERNEL); in traverse() 80 if (!m->buf) in traverse() 83 p = m->op->start(m, &index); in traverse() 88 error = m->op->show(m, p); in traverse() 93 m->count = 0; in traverse() [all …]
|
D | pnode.c | 50 struct vfsmount *m = mnt; in get_peer_under_root() local 54 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt_root, root)) in get_peer_under_root() 55 return m; in get_peer_under_root() 57 m = next_peer(m); in get_peer_under_root() 58 } while (m != mnt); in get_peer_under_root() 71 struct vfsmount *m; in get_dominating_id() local 73 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id() 74 struct vfsmount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id() 151 static struct vfsmount *propagation_next(struct vfsmount *m, in propagation_next() argument 155 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in propagation_next() [all …]
|
D | quota_v1.c | 31 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 …]
|
D | quota_v2.c | 140 struct mem_dqblk *m = &dquot->dq_dqb; in v2_disk2memdqb() local 142 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2_disk2memdqb() 143 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2_disk2memdqb() 144 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2_disk2memdqb() 145 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2_disk2memdqb() 146 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2_disk2memdqb() 147 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2_disk2memdqb() 148 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2_disk2memdqb() 149 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2_disk2memdqb() 154 m->dqb_itime = 0; in v2_disk2memdqb() [all …]
|
D | namespace.c | 509 struct vfsmount *m; in commit_tree() local 516 list_for_each_entry(m, &head, mnt_list) in commit_tree() 517 m->mnt_ns = n; in commit_tree() 685 static inline void mangle(struct seq_file *m, const char *s) in mangle() argument 687 seq_escape(m, s, " \t\n\\"); in mangle() 696 int generic_show_options(struct seq_file *m, struct vfsmount *mnt) in generic_show_options() argument 701 seq_putc(m, ','); in generic_show_options() 702 mangle(m, options); in generic_show_options() 731 static void *m_start(struct seq_file *m, loff_t *pos) in m_start() argument 733 struct proc_mounts *p = m->private; in m_start() [all …]
|
/fs/proc/ |
D | proc_tty.c | 26 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_printf(m, "system"); in show_tty_range() 41 seq_printf(m, ":/dev/tty"); in show_tty_range() 43 seq_printf(m, ":console"); in show_tty_range() 45 seq_printf(m, ":vtmaster"); in show_tty_range() 48 seq_printf(m, "console"); in show_tty_range() [all …]
|
D | array.c | 89 static inline void task_name(struct seq_file *m, struct task_struct *p) in task_name() argument 98 seq_printf(m, "Name:\t"); in task_name() 99 end = m->buf + m->size; in task_name() 100 buf = m->buf + m->count; in task_name() 124 m->count = buf - m->buf; in task_name() 125 seq_printf(m, "\n"); in task_name() 156 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument 175 seq_printf(m, in task_state() 193 seq_printf(m, in task_state() 203 seq_printf(m, "%d ", GROUP_AT(group_info, g)); in task_state() [all …]
|
D | kcore.c | 78 struct kcore_list *m; in get_kcore_size() local 83 for (m=kclist; m; m=m->next) { in get_kcore_size() 84 try = kc_vaddr_to_offset((size_t)m->addr + m->size); in get_kcore_size() 155 struct kcore_list *m; in elf_kcore_store_hdr() local 195 for (m=kclist; m; m=m->next) { in elf_kcore_store_hdr() 202 phdr->p_offset = kc_vaddr_to_offset(m->addr) + dataoff; in elf_kcore_store_hdr() 203 phdr->p_vaddr = (size_t)m->addr; in elf_kcore_store_hdr() 205 phdr->p_filesz = phdr->p_memsz = m->size; in elf_kcore_store_hdr() 317 struct kcore_list *m; in read_kcore() local 320 for (m=kclist; m; m=m->next) { in read_kcore() [all …]
|
D | task_mmu.c | 17 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument 39 seq_printf(m, in task_mem() 76 static void pad_len_spaces(struct seq_file *m, int len) in pad_len_spaces() argument 81 seq_printf(m, "%*c", len, ' '); in pad_len_spaces() 93 static void *m_start(struct seq_file *m, loff_t *pos) in m_start() argument 95 struct proc_maps_private *priv = m->private; in m_start() 96 unsigned long last_addr = m->version; in m_start() 153 m->version = (tail_vma != NULL)? 0: -1UL; in m_start() 159 static void *m_next(struct seq_file *m, void *v, loff_t *pos) in m_next() argument 161 struct proc_maps_private *priv = m->private; in m_next() [all …]
|
D | nommu.c | 38 static int nommu_region_show(struct seq_file *m, struct vm_region *region) in nommu_region_show() argument 54 seq_printf(m, in nommu_region_show() 69 seq_printf(m, "%*c", len, ' '); in nommu_region_show() 70 seq_path(m, &file->f_path, ""); in nommu_region_show() 73 seq_putc(m, '\n'); in nommu_region_show() 81 static int nommu_region_list_show(struct seq_file *m, void *_p) in nommu_region_list_show() argument 85 return nommu_region_show(m, rb_entry(p, struct vm_region, vm_rb)); in nommu_region_list_show() 88 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start() argument 101 static void nommu_region_list_stop(struct seq_file *m, void *v) in nommu_region_list_stop() argument 106 static void *nommu_region_list_next(struct seq_file *m, void *v, loff_t *pos) in nommu_region_list_next() argument
|
D | task_nommu.c | 16 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument 69 seq_printf(m, in task_mem() 122 static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma) in nommu_vma_show() argument 138 seq_printf(m, in nommu_vma_show() 153 seq_printf(m, "%*c", len, ' '); in nommu_vma_show() 154 seq_path(m, &file->f_path, ""); in nommu_vma_show() 157 seq_putc(m, '\n'); in nommu_vma_show() 164 static int show_map(struct seq_file *m, void *_p) in show_map() argument 168 return nommu_vma_show(m, rb_entry(p, struct vm_area_struct, vm_rb)); in show_map() 171 static void *m_start(struct seq_file *m, loff_t *pos) in m_start() argument [all …]
|
/fs/cifs/ |
D | cifs_debug.c | 108 static int cifs_debug_data_proc_show(struct seq_file *m, void *v) in cifs_debug_data_proc_show() argument 118 seq_puts(m, in cifs_debug_data_proc_show() 121 seq_printf(m, "CIFS Version %s\n", CIFS_VERSION); in cifs_debug_data_proc_show() 122 seq_printf(m, "Active VFS Requests: %d\n", GlobalTotalActiveXid); in cifs_debug_data_proc_show() 123 seq_printf(m, "Servers:"); in cifs_debug_data_proc_show() 137 seq_printf(m, "\n%d) entry for %s not fully " in cifs_debug_data_proc_show() 140 seq_printf(m, in cifs_debug_data_proc_show() 148 seq_printf(m, "TCP status: %d\n\tLocal Users To " in cifs_debug_data_proc_show() 155 seq_printf(m, " In Send: %d In MaxReq Wait: %d", in cifs_debug_data_proc_show() 160 seq_puts(m, "\n\tShares:"); in cifs_debug_data_proc_show() [all …]
|
/fs/afs/ |
D | proc.c | 27 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); 186 struct seq_file *m; in afs_proc_cells_open() local 193 m = file->private_data; in afs_proc_cells_open() 194 m->private = PDE(inode)->data; in afs_proc_cells_open() 203 static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) in afs_proc_cells_start() argument 229 static int afs_proc_cells_show(struct seq_file *m, void *v) in afs_proc_cells_show() argument 235 seq_puts(m, "USE NAME\n"); in afs_proc_cells_show() [all …]
|
/fs/reiserfs/ |
D | procfs.c | 29 static int show_version(struct seq_file *m, struct super_block *sb) in show_version() argument 41 seq_printf(m, "%s format\twith checks %s\n", format, in show_version() 80 static int show_super(struct seq_file *m, struct super_block *sb) in show_super() argument 84 seq_printf(m, "state: \t%s\n" in show_super() 142 static int show_per_level(struct seq_file *m, struct super_block *sb) in show_per_level() argument 147 seq_printf(m, "level\t" in show_per_level() 163 seq_printf(m, "%i\t" in show_per_level() 200 static int show_bitmap(struct seq_file *m, struct super_block *sb) in show_bitmap() argument 204 seq_printf(m, "free_block: %lu\n" in show_bitmap() 232 static int show_on_disk_super(struct seq_file *m, struct super_block *sb) in show_on_disk_super() argument [all …]
|
/fs/ntfs/ |
D | mft.c | 156 MFT_RECORD *m; in map_mft_record() local 166 m = map_mft_record_page(ni); in map_mft_record() 167 if (likely(!IS_ERR(m))) in map_mft_record() 168 return m; in map_mft_record() 172 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record() 173 return m; in map_mft_record() 248 MFT_RECORD *m; in map_extent_mft_record() local 281 m = map_mft_record(ni); in map_extent_mft_record() 284 if (likely(!IS_ERR(m))) { in map_extent_mft_record() 286 if (likely(le16_to_cpu(m->sequence_number) == seq_no)) { in map_extent_mft_record() [all …]
|
D | mft.h | 80 MFT_RECORD *m, int sync); 82 extern int write_mft_record_nolock(ntfs_inode *ni, MFT_RECORD *m, int sync); 102 static inline int write_mft_record(ntfs_inode *ni, MFT_RECORD *m, int sync) in write_mft_record() argument 109 err = write_mft_record_nolock(ni, m, sync); in write_mft_record() 115 const unsigned long mft_no, const MFT_RECORD *m, 120 extern int ntfs_extent_mft_record_free(ntfs_inode *ni, MFT_RECORD *m);
|
D | file.c | 121 MFT_RECORD *m = NULL; in ntfs_attr_extend_initialized() local 149 m = map_mft_record(base_ni); in ntfs_attr_extend_initialized() 150 if (IS_ERR(m)) { in ntfs_attr_extend_initialized() 151 err = PTR_ERR(m); in ntfs_attr_extend_initialized() 152 m = NULL; in ntfs_attr_extend_initialized() 155 ctx = ntfs_attr_get_search_ctx(base_ni, m); in ntfs_attr_extend_initialized() 167 m = ctx->mrec; in ntfs_attr_extend_initialized() 193 m = map_mft_record(base_ni); in ntfs_attr_extend_initialized() 194 if (IS_ERR(m)) { in ntfs_attr_extend_initialized() 195 err = PTR_ERR(m); in ntfs_attr_extend_initialized() [all …]
|
D | inode.c | 547 MFT_RECORD *m; in ntfs_read_locked_inode() local 575 m = map_mft_record(ni); in ntfs_read_locked_inode() 576 if (IS_ERR(m)) { in ntfs_read_locked_inode() 577 err = PTR_ERR(m); in ntfs_read_locked_inode() 580 ctx = ntfs_attr_get_search_ctx(ni, m); in ntfs_read_locked_inode() 586 if (!(m->flags & MFT_RECORD_IN_USE)) { in ntfs_read_locked_inode() 590 if (m->base_mft_record) { in ntfs_read_locked_inode() 596 vi->i_generation = ni->seq_no = le16_to_cpu(m->sequence_number); in ntfs_read_locked_inode() 607 vi->i_nlink = le16_to_cpu(m->link_count); in ntfs_read_locked_inode() 620 if (m->flags & MFT_RECORD_IS_DIRECTORY) { in ntfs_read_locked_inode() [all …]
|
/fs/ncpfs/ |
D | inode.c | 158 inode->i_mode = server->m.dir_mode; in ncp_update_attrs() 163 inode->i_mode = server->m.file_mode; in ncp_update_attrs() 166 if ((server->m.flags & (NCP_MOUNT_EXTRAS|NCP_MOUNT_SYMLINKS)) in ncp_update_attrs() 170 if (server->m.flags & NCP_MOUNT_SYMLINKS) { in ncp_update_attrs() 180 if (server->m.flags & NCP_MOUNT_EXTRAS) in ncp_update_attrs() 184 if (server->m.flags & NCP_MOUNT_EXTRAS) in ncp_update_attrs() 224 inode->i_uid = server->m.uid; in ncp_set_attr() 225 inode->i_gid = server->m.gid; in ncp_set_attr() 315 if (server->m.uid != 0) in ncp_show_options() 316 seq_printf(seq, ",uid=%u", server->m.uid); in ncp_show_options() [all …]
|
D | ioctl.c | 44 && current_uid() != server->m.mounted_uid) in ncp_get_fs_info() 55 SET_UID(info.mounted_uid, server->m.mounted_uid); in ncp_get_fs_info() 74 && current_uid() != server->m.mounted_uid) in ncp_get_fs_info_v2() 84 info2.mounted_uid = server->m.mounted_uid; in ncp_get_fs_info_v2() 145 && current_uid() != server->m.mounted_uid) in ncp_get_compat_fs_info_v2() 155 info2.mounted_uid = server->m.mounted_uid; in ncp_get_compat_fs_info_v2() 281 && uid != server->m.mounted_uid) in __ncp_ioctl() 337 if (!(server->m.int_flags & NCP_IMOUNT_LOGGEDIN_POSSIBLE)) in __ncp_ioctl() 361 && uid != server->m.mounted_uid) in __ncp_ioctl() 366 SET_UID(uid, server->m.mounted_uid); in __ncp_ioctl() [all …]
|
D | ncplib_kernel.h | 122 return (server->m.flags & NCP_MOUNT_NFS_EXTRAS) && in ncp_is_nfs_extras() 142 #define ncp_io2vol(S,m,i,n,k,U) ncp__io2vol(S,m,i,n,k,U) argument 143 #define ncp_vol2io(S,m,i,n,k,U) ncp__vol2io(S,m,i,n,k,U) argument 155 #define ncp_io2vol(S,m,i,n,k,U) ncp__io2vol(m,i,n,k,U) argument 156 #define ncp_vol2io(S,m,i,n,k,U) ncp__vol2io(m,i,n,k,U) argument
|
/fs/nfsd/ |
D | export.c | 187 static int expkey_show(struct seq_file *m, in expkey_show() argument 195 seq_puts(m, "#domain fsidtype fsid [path]\n"); in expkey_show() 199 seq_printf(m, "%s %d 0x", ek->ek_client->name, in expkey_show() 202 seq_printf(m, "%08x", ek->ek_fsid[i]); in expkey_show() 205 seq_printf(m, " "); in expkey_show() 206 seq_path(m, &ek->ek_path, "\\ \t\n"); in expkey_show() 208 seq_printf(m, "\n"); in expkey_show() 630 static void exp_flags(struct seq_file *m, int flag, int fsid, 632 static void show_secinfo(struct seq_file *m, struct svc_export *exp); 634 static int svc_export_show(struct seq_file *m, in svc_export_show() argument [all …]
|
/fs/ecryptfs/ |
D | super.c | 162 static int ecryptfs_show_options(struct seq_file *m, struct vfsmount *mnt) in ecryptfs_show_options() argument 173 seq_printf(m, ",ecryptfs_sig=%s", walker->sig); in ecryptfs_show_options() 177 seq_printf(m, ",ecryptfs_cipher=%s", in ecryptfs_show_options() 181 seq_printf(m, ",ecryptfs_key_bytes=%zd", in ecryptfs_show_options() 184 seq_printf(m, ",ecryptfs_passthrough"); in ecryptfs_show_options() 186 seq_printf(m, ",ecryptfs_xattr_metadata"); in ecryptfs_show_options() 188 seq_printf(m, ",ecryptfs_encrypted_view"); in ecryptfs_show_options()
|
/fs/nfs/ |
D | super.c | 460 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument 468 seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr); in nfs_show_mountd_options() 473 seq_printf(m, ",mountaddr=%pI6", &sin6->sin6_addr); in nfs_show_mountd_options() 478 seq_printf(m, ",mountaddr=unspecified"); in nfs_show_mountd_options() 482 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options() 484 seq_printf(m, ",mountport=%u", nfss->mountd_port); in nfs_show_mountd_options() 488 seq_printf(m, ",mountproto=udp"); in nfs_show_mountd_options() 491 seq_printf(m, ",mountproto=tcp"); in nfs_show_mountd_options() 495 seq_printf(m, ",mountproto=auto"); in nfs_show_mountd_options() 502 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options() argument [all …]
|
/fs/autofs4/ |
D | inode.c | 182 static int autofs4_show_options(struct seq_file *m, struct vfsmount *mnt) in autofs4_show_options() argument 190 seq_printf(m, ",fd=%d", sbi->pipefd); in autofs4_show_options() 192 seq_printf(m, ",uid=%u", root_inode->i_uid); in autofs4_show_options() 194 seq_printf(m, ",gid=%u", root_inode->i_gid); in autofs4_show_options() 195 seq_printf(m, ",pgrp=%d", sbi->oz_pgrp); in autofs4_show_options() 196 seq_printf(m, ",timeout=%lu", sbi->exp_timeout/HZ); in autofs4_show_options() 197 seq_printf(m, ",minproto=%d", sbi->min_proto); in autofs4_show_options() 198 seq_printf(m, ",maxproto=%d", sbi->max_proto); in autofs4_show_options() 201 seq_printf(m, ",offset"); in autofs4_show_options() 203 seq_printf(m, ",direct"); in autofs4_show_options() [all …]
|