/fs/jfs/ |
D | jfs_xtree.c | 58 if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \ 59 (le16_to_cpu((P)->header.nextindex) > \ 60 le16_to_cpu((P)->header.maxentry)) || \ 61 (le16_to_cpu((P)->header.maxentry) > \ 278 (p->header.flag & BT_LEAF) && in xtSearch() 280 le16_to_cpu(p->header.nextindex)) { in xtSearch() 296 le16_to_cpu(p->header.nextindex)) { in xtSearch() 337 if (p->header.nextindex == /* little-endian */ in xtSearch() 338 p->header.maxentry) in xtSearch() 363 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtSearch() [all …]
|
D | jfs_dtree.c | 118 if (((P)->header.nextindex > \ 119 (((BN) == 0) ? DTROOTMAXSLOT : (P)->header.maxslot)) || \ 120 ((BN) && ((P)->header.maxslot > DTPAGEMAXSLOT))) { \ 633 for (base = 0, lim = p->header.nextindex; lim; lim >>= 1) { in dtSearch() 636 if (p->header.flag & BT_LEAF) { in dtSearch() 655 if (p->header.flag & BT_LEAF) { in dtSearch() 725 if (p->header.flag & BT_LEAF) { in dtSearch() 857 if (n > p->header.freecnt) { in dtInsert() 889 if (!(p->header.flag & BT_ROOT)) { in dtInsert() 894 lv->offset = p->header.stblindex + n; in dtInsert() [all …]
|
D | jfs_dtree.h | 144 } header; /* (32) */ member 150 (le32_to_cpu(JFS_IP(IP)->i_dtroot.header.idotdot)) 154 #define dtEmpty(IP) (JFS_IP(IP)->i_dtroot.header.nextindex == 0) 195 } header; /* (32) */ member 221 #define DT_GETSTBL(p) ( ((p)->header.flag & BT_ROOT) ?\ 222 ((dtroot_t *)(p))->header.stbl : \ 223 (s8 *)&(p)->slot[(p)->header.stblindex] )
|
D | jfs_dinode.h | 85 #define di_parent di_dtroot.header.idotdot 86 #define di_DASD di_dtroot.header.DASD
|
D | jfs_txnmgr.c | 772 xtlck->header.offset = 0; in txLock() 773 xtlck->header.length = 2; in txLock() 783 le16_to_cpu(p->header.nextindex); in txLock() 1717 next = le16_to_cpu(p->header.nextindex); in xtLog() 1852 xtlck->header.offset = XTENTRYSTART; in xtLog() 1853 xtlck->header.length = hwm - XTENTRYSTART + 1; in xtLog() 1988 xtlck->header.offset = next; in xtLog() 1989 xtlck->header.length = hwm - next + 1; in xtLog()
|
D | jfs_xtree.h | 83 } header; /* (32) */ member
|
/fs/proc/ |
D | proc_sysctl.c | 42 dir->header.ctl_table[0].child = sysctl_mount_point; in set_empty_dir() 48 dir->header.ctl_table[0].child = NULL; in clear_empty_dir() 68 .default_set.dir.header = { 80 static void drop_sysctl_table(struct ctl_table_header *header); 84 static void put_links(struct ctl_table_header *header); 88 if (dir->header.parent) in sysctl_print_dir() 89 sysctl_print_dir(dir->header.parent); in sysctl_print_dir() 90 pr_cont("%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir() 123 head = ctl_node->header; in find_entry() 157 parent_head = parent_node->header; in insert_entry() [all …]
|
D | array.c | 229 void render_sigset_t(struct seq_file *m, const char *header, in render_sigset_t() argument 234 seq_puts(m, header); in render_sigset_t() 305 static void render_cap_t(struct seq_file *m, const char *header, in render_cap_t() argument 310 seq_puts(m, header); in render_cap_t()
|
/fs/ext2/ |
D | xattr.c | 138 ext2_xattr_header_valid(struct ext2_xattr_header *header) in ext2_xattr_header_valid() argument 140 if (header->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_header_valid() 141 header->h_blocks != cpu_to_le32(1)) in ext2_xattr_header_valid() 411 struct ext2_xattr_header *header = NULL; in ext2_xattr_set() local 449 header = HDR(bh); in ext2_xattr_set() 451 if (!ext2_xattr_header_valid(header)) { in ext2_xattr_set() 486 free = min_offs - ((char*)last - (char*)header) - sizeof(__u32); in ext2_xattr_set() 515 if (header) { in ext2_xattr_set() 518 if (header->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set() 519 __u32 hash = le32_to_cpu(header->h_hash); in ext2_xattr_set() [all …]
|
/fs/nfs/blocklayout/ |
D | blocklayout.c | 192 static void bl_mark_devices_unavailable(struct nfs_pgio_header *header, bool rw) in bl_mark_devices_unavailable() argument 194 struct pnfs_block_layout *bl = BLK_LSEG2EXT(header->lseg); in bl_mark_devices_unavailable() 195 size_t bytes_left = header->args.count; in bl_mark_devices_unavailable() 199 isect = header->args.offset >> SECTOR_SHIFT; in bl_mark_devices_unavailable() 200 bytes_left += header->args.offset - (isect << SECTOR_SHIFT); in bl_mark_devices_unavailable() 220 struct nfs_pgio_header *header = par->data; in bl_end_io_read() local 222 if (!header->pnfs_error) in bl_end_io_read() 223 header->pnfs_error = -EIO; in bl_end_io_read() 224 pnfs_set_lo_fail(header->lseg); in bl_end_io_read() 225 bl_mark_devices_unavailable(header, false); in bl_end_io_read() [all …]
|
/fs/jffs2/ |
D | acl.c | 58 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium() local 68 ver = je32_to_cpu(header->a_version); in jffs2_acl_from_medium() 130 struct jffs2_acl_header *header; in jffs2_acl_to_medium() local 136 header = kmalloc(struct_size(header, a_entries, acl->a_count), in jffs2_acl_to_medium() 138 if (!header) in jffs2_acl_to_medium() 140 header->a_version = cpu_to_je32(JFFS2_ACL_VERSION); in jffs2_acl_to_medium() 141 e = header + 1; in jffs2_acl_to_medium() 170 return header; in jffs2_acl_to_medium() 172 kfree(header); in jffs2_acl_to_medium()
|
/fs/nilfs2/ |
D | cpfile.c | 221 struct nilfs_cpfile_header *header; in nilfs_cpfile_get_checkpoint() local 255 header = nilfs_cpfile_block_get_header(cpfile, header_bh, in nilfs_cpfile_get_checkpoint() 257 le64_add_cpu(&header->ch_ncheckpoints, 1); in nilfs_cpfile_get_checkpoint() 316 struct nilfs_cpfile_header *header; in nilfs_cpfile_delete_checkpoints() local 393 header = nilfs_cpfile_block_get_header(cpfile, header_bh, in nilfs_cpfile_delete_checkpoints() 395 le64_add_cpu(&header->ch_ncheckpoints, -(u64)tnicps); in nilfs_cpfile_delete_checkpoints() 480 struct nilfs_cpfile_header *header; in nilfs_cpfile_do_get_ssinfo() local 495 header = nilfs_cpfile_block_get_header(cpfile, bh, kaddr); in nilfs_cpfile_do_get_ssinfo() 496 curr = le64_to_cpu(header->ch_snapshot_list.ssl_next); in nilfs_cpfile_do_get_ssinfo() 603 struct nilfs_cpfile_header *header; in nilfs_cpfile_block_get_snapshot_list() local [all …]
|
D | sufile.c | 107 struct nilfs_sufile_header *header; in nilfs_sufile_mod_counter() local 111 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter() 112 le64_add_cpu(&header->sh_ncleansegs, ncleanadd); in nilfs_sufile_mod_counter() 113 le64_add_cpu(&header->sh_ndirtysegs, ndirtyadd); in nilfs_sufile_mod_counter() 305 struct nilfs_sufile_header *header; in nilfs_sufile_alloc() local 320 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc() 321 last_alloc = le64_to_cpu(header->sh_last_alloc); in nilfs_sufile_alloc() 370 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc() 371 le64_add_cpu(&header->sh_ncleansegs, -1); in nilfs_sufile_alloc() 372 le64_add_cpu(&header->sh_ndirtysegs, 1); in nilfs_sufile_alloc() [all …]
|
/fs/ext4/ |
D | xattr.c | 261 __xattr_check_inode(struct inode *inode, struct ext4_xattr_ibody_header *header, in __xattr_check_inode() argument 266 if (end - (void *)header < sizeof(*header) + sizeof(u32) || in __xattr_check_inode() 267 (header->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC))) in __xattr_check_inode() 269 error = ext4_xattr_check_entries(IFIRST(header), end, IFIRST(header)); in __xattr_check_inode() 277 #define xattr_check_inode(inode, header, end) \ argument 278 __xattr_check_inode((inode), (header), (end), __func__, __LINE__) 575 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_get() local 589 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get() 591 error = xattr_check_inode(inode, header, end); in ext4_xattr_ibody_get() 594 entry = IFIRST(header); in ext4_xattr_ibody_get() [all …]
|
D | inline.c | 33 struct ext4_xattr_ibody_header *header; in get_max_inline_xattr_value_size() local 54 header = IHDR(inode, raw_inode); in get_max_inline_xattr_value_size() 55 entry = IFIRST(header); in get_max_inline_xattr_value_size() 66 ((void *)entry - (void *)IFIRST(header)) - sizeof(__u32); in get_max_inline_xattr_value_size() 170 struct ext4_xattr_ibody_header *header; in ext4_read_inline_data() local 191 header = IHDR(inode, raw_inode); in ext4_read_inline_data() 198 (void *)IFIRST(header) + le16_to_cpu(entry->e_value_offs), len); in ext4_read_inline_data() 215 struct ext4_xattr_ibody_header *header; in ext4_write_inline_data() local 242 header = IHDR(inode, raw_inode); in ext4_write_inline_data() 246 memcpy((void *)IFIRST(header) + le16_to_cpu(entry->e_value_offs) + pos, in ext4_write_inline_data() [all …]
|
/fs/dlm/ |
D | midcomms.c | 79 msglen = le16_to_cpu(p->header.h_length); in dlm_process_incoming_buffer() 80 lockspace = p->header.h_lockspace; in dlm_process_incoming_buffer() 85 if (p->header.h_cmd == DLM_MSG) { in dlm_process_incoming_buffer() 120 BUG_ON(lockspace != p->header.h_lockspace); in dlm_process_incoming_buffer()
|
D | debug_fs.c | 370 int header; member 389 if (ri->header) { in table_seq_show() 391 ri->header = 0; in table_seq_show() 396 if (ri->header) { in table_seq_show() 398 ri->header = 0; in table_seq_show() 403 if (ri->header) { in table_seq_show() 405 ri->header = 0; in table_seq_show() 440 ri->header = 1; in table_seq_start()
|
/fs/ocfs2/ |
D | xattr.c | 126 struct ocfs2_xattr_header *header; member 931 struct ocfs2_xattr_header *header, in ocfs2_xattr_list_entries() argument 938 for (i = 0 ; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_xattr_list_entries() 939 struct ocfs2_xattr_entry *entry = &header->xh_entries[i]; in ocfs2_xattr_list_entries() 941 name = (const char *)header + in ocfs2_xattr_list_entries() 977 struct ocfs2_xattr_header *header = NULL; in ocfs2_xattr_ibody_list() local 984 header = (struct ocfs2_xattr_header *) in ocfs2_xattr_ibody_list() 988 ret = ocfs2_xattr_list_entries(inode, header, buffer, buffer_size); in ocfs2_xattr_ibody_list() 1014 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list() local 1015 ret = ocfs2_xattr_list_entries(inode, header, in ocfs2_xattr_block_list() [all …]
|
/fs/ |
D | posix_acl.c | 670 struct posix_acl_xattr_header *header = value; in posix_acl_fix_xattr_userns() local 671 struct posix_acl_xattr_entry *entry = (void *)(header + 1), *end; in posix_acl_fix_xattr_userns() 680 if (header->a_version != cpu_to_le32(POSIX_ACL_XATTR_VERSION)) in posix_acl_fix_xattr_userns() 728 const struct posix_acl_xattr_header *header = value; in posix_acl_from_xattr() local 729 const struct posix_acl_xattr_entry *entry = (const void *)(header + 1), *end; in posix_acl_from_xattr() 738 if (header->a_version != cpu_to_le32(POSIX_ACL_XATTR_VERSION)) in posix_acl_from_xattr()
|
/fs/f2fs/ |
D | xattr.c | 372 struct f2fs_xattr_header *header; in read_all_xattrs() local 398 header = XATTR_HDR(txattr_addr); in read_all_xattrs() 401 if (le32_to_cpu(header->h_magic) != F2FS_XATTR_MAGIC) { in read_all_xattrs() 402 header->h_magic = cpu_to_le32(F2FS_XATTR_MAGIC); in read_all_xattrs() 403 header->h_refcount = cpu_to_le32(1); in read_all_xattrs()
|
/fs/jbd2/ |
D | recovery.c | 815 jbd2_journal_revoke_header_t *header; in scan_revoke_records() local 821 header = (jbd2_journal_revoke_header_t *) bh->b_data; in scan_revoke_records() 823 rcount = be32_to_cpu(header->r_count); in scan_revoke_records() 825 if (!jbd2_descriptor_block_csum_verify(journal, header)) in scan_revoke_records()
|
D | revoke.c | 639 jbd2_journal_revoke_header_t *header; in flush_descriptor() local 644 header = (jbd2_journal_revoke_header_t *)descriptor->b_data; in flush_descriptor() 645 header->r_count = cpu_to_be32(offset); in flush_descriptor()
|
/fs/btrfs/ |
D | free-space-cache.c | 51 struct btrfs_free_space_header *header; in __lookup_free_space_inode() local 70 header = btrfs_item_ptr(leaf, path->slots[0], in __lookup_free_space_inode() 72 btrfs_free_space_key(leaf, header, &disk_key); in __lookup_free_space_inode() 138 struct btrfs_free_space_header *header; in __create_free_space_inode() local 182 header = btrfs_item_ptr(leaf, path->slots[0], in __create_free_space_inode() 184 memzero_extent_buffer(leaf, (unsigned long)header, sizeof(*header)); in __create_free_space_inode() 185 btrfs_set_free_space_key(leaf, header, &disk_key); in __create_free_space_inode() 671 struct btrfs_free_space_header *header; in __load_free_space_cache() local 702 header = btrfs_item_ptr(leaf, path->slots[0], in __load_free_space_cache() 704 num_entries = btrfs_free_space_entries(leaf, header); in __load_free_space_cache() [all …]
|
/fs/omfs/ |
D | omfs.h | 51 extern int omfs_is_bad(struct omfs_sb_info *sbi, struct omfs_header *header,
|
D | dir.c | 315 int omfs_is_bad(struct omfs_sb_info *sbi, struct omfs_header *header, in omfs_is_bad() argument 319 u64 ino = be64_to_cpu(header->h_self); in omfs_is_bad()
|