/fs/reiserfs/ |
D | lbalance.c | 26 struct item_head *ih; in leaf_copy_dir_entries() local 31 ih = item_head(source, item_num); in leaf_copy_dir_entries() 33 RFALSE(!is_direntry_le_ih(ih), "vs-10000: item must be directory item"); in leaf_copy_dir_entries() 39 deh = B_I_DEH(source, ih); in leaf_copy_dir_entries() 42 ih_item_len(ih)) - in leaf_copy_dir_entries() 45 source->b_data + ih_location(ih) + in leaf_copy_dir_entries() 63 (last_first == FIRST_TO_LAST && le_ih_k_offset(ih) == DOT_OFFSET) || in leaf_copy_dir_entries() 65 && comp_short_le_keys /*COMP_SHORT_KEYS */ (&ih->ih_key, in leaf_copy_dir_entries() 73 memcpy(&new_ih.ih_key, &ih->ih_key, KEY_SIZE); in leaf_copy_dir_entries() 82 if (from < ih_entry_count(ih)) { in leaf_copy_dir_entries() [all …]
|
D | do_balan.c | 83 struct item_head *ih = item_head(tbS0, item_pos); in balance_leaf_when_delete_del() local 86 RFALSE(ih_item_len(ih) + IH_SIZE != -tb->insert_size[0], in balance_leaf_when_delete_del() 88 -tb->insert_size[0], ih); in balance_leaf_when_delete_del() 113 struct item_head *ih = item_head(tbS0, item_pos); in balance_leaf_when_delete_cut() local 118 if (is_direntry_le_ih(ih)) { in balance_leaf_when_delete_cut() 140 RFALSE(!ih_item_len(ih), in balance_leaf_when_delete_cut() 287 struct item_head *const ih, in balance_leaf_insert_left() argument 302 new_item_len = ih_item_len(ih) - tb->lbytes; in balance_leaf_insert_left() 305 put_ih_item_len(ih, ih_item_len(ih) - new_item_len); in balance_leaf_insert_left() 307 RFALSE(ih_item_len(ih) <= 0, in balance_leaf_insert_left() [all …]
|
D | reiserfs.h | 1398 #define ih_free_space(ih) le16_to_cpu((ih)->u.ih_free_space_reserved) argument 1399 #define ih_version(ih) le16_to_cpu((ih)->ih_version) argument 1400 #define ih_entry_count(ih) le16_to_cpu((ih)->u.ih_entry_count) argument 1401 #define ih_location(ih) le16_to_cpu((ih)->ih_item_location) argument 1402 #define ih_item_len(ih) le16_to_cpu((ih)->ih_item_len) argument 1404 #define put_ih_free_space(ih, val) do { (ih)->u.ih_free_space_reserved = cpu_to_le16(val); } whil… argument 1405 #define put_ih_version(ih, val) do { (ih)->ih_version = cpu_to_le16(val); } while (0) argument 1406 #define put_ih_entry_count(ih, val) do { (ih)->u.ih_entry_count = cpu_to_le16(val); } while (0) argument 1407 #define put_ih_location(ih, val) do { (ih)->ih_item_location = cpu_to_le16(val); } while (0) argument 1408 #define put_ih_item_len(ih, val) do { (ih)->ih_item_len = cpu_to_le16(val); } while (0) argument [all …]
|
D | item_ops.c | 19 static int sd_bytes_number(struct item_head *ih, int block_size) in sd_bytes_number() argument 36 static void sd_print_item(struct item_head *ih, char *item) in sd_print_item() argument 39 if (stat_data_v1(ih)) { in sd_print_item() 55 static void sd_check_item(struct item_head *ih, char *item) in sd_check_item() argument 114 static int direct_bytes_number(struct item_head *ih, int block_size) in direct_bytes_number() argument 116 return ih_item_len(ih); in direct_bytes_number() 134 static void direct_print_item(struct item_head *ih, char *item) in direct_print_item() argument 140 while (j < ih_item_len(ih)) in direct_print_item() 145 static void direct_check_item(struct item_head *ih, char *item) in direct_check_item() argument 205 static int indirect_bytes_number(struct item_head *ih, int block_size) in indirect_bytes_number() argument [all …]
|
D | inode.c | 137 inline void make_le_item_head(struct item_head *ih, const struct cpu_key *key, in make_le_item_head() argument 143 ih->ih_key.k_dir_id = cpu_to_le32(key->on_disk_key.k_dir_id); in make_le_item_head() 144 ih->ih_key.k_objectid = in make_le_item_head() 147 put_ih_version(ih, version); in make_le_item_head() 148 set_le_ih_k_offset(ih, offset); in make_le_item_head() 149 set_le_ih_k_type(ih, type); in make_le_item_head() 150 put_ih_item_len(ih, length); in make_le_item_head() 156 put_ih_entry_count(ih, entry_count); in make_le_item_head() 215 struct item_head *ih, in allocation_needed() argument 220 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) && in allocation_needed() [all …]
|
D | stree.c | 390 static int has_valid_deh_location(struct buffer_head *bh, struct item_head *ih) in has_valid_deh_location() argument 395 deh = B_I_DEH(bh, ih); in has_valid_deh_location() 396 for (i = 0; i < ih_entry_count(ih); i++) { in has_valid_deh_location() 397 if (deh_location(&deh[i]) > ih_item_len(ih)) { in has_valid_deh_location() 411 struct item_head *ih; in is_leaf() local 431 ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1; in is_leaf() 432 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf() 446 ih = (struct item_head *)(buf + BLKH_SIZE); in is_leaf() 448 for (i = 0; i < nr; i++, ih++) { in is_leaf() 449 if (le_ih_k_type(ih) == TYPE_ANY) { in is_leaf() [all …]
|
D | dir.c | 70 struct item_head *ih, tmp_ih; in reiserfs_readdir_inode() local 111 ih = de.de_ih; in reiserfs_readdir_inode() 112 store_ih(&tmp_ih, ih); in reiserfs_readdir_inode() 115 RFALSE(COMP_SHORT_KEYS(&ih->ih_key, &pos_key), in reiserfs_readdir_inode() 117 ih, &pos_key); in reiserfs_readdir_inode() 126 RFALSE(ih_entry_count(ih) < entry_num, in reiserfs_readdir_inode() 128 entry_num, ih_entry_count(ih)); in reiserfs_readdir_inode() 135 || entry_num < ih_entry_count(ih)) { in reiserfs_readdir_inode() 137 B_I_DEH(bh, ih) + entry_num; in reiserfs_readdir_inode() 139 for (; entry_num < ih_entry_count(ih); in reiserfs_readdir_inode() [all …]
|
D | prints.c | 116 static int scnprintf_item_head(char *buf, size_t size, struct item_head *ih) in scnprintf_item_head() argument 118 if (ih) { in scnprintf_item_head() 123 (ih_version(ih) == KEY_FORMAT_3_6) ? in scnprintf_item_head() 126 p += scnprintf_le_key(p, end - p, &ih->ih_key); in scnprintf_item_head() 130 ih_item_len(ih), ih_location(ih), in scnprintf_item_head() 131 ih_free_space(ih)); in scnprintf_item_head() 481 struct item_head *ih; in print_leaf() local 491 ih = item_head(bh, 0); in print_leaf() 500 &(ih->ih_key), &((ih + nr - 1)->ih_key)); in print_leaf() 514 ih += from; in print_leaf() [all …]
|
D | fix_node.c | 53 struct item_head *ih; in create_virtual_node() local 81 ih = item_head(Sh, 0); in create_virtual_node() 84 if (op_is_left_mergeable(&ih->ih_key, Sh->b_size) in create_virtual_node() 105 vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE; in create_virtual_node() 106 vi->vi_ih = ih + j; in create_virtual_node() 107 vi->vi_item = ih_item_body(Sh, ih + j); in create_virtual_node() 714 struct item_head *ih; in are_leaves_removable() local 720 ih = item_head(S0, 0); in are_leaves_removable() 722 && !comp_short_le_keys(&ih->ih_key, in are_leaves_removable() 735 if (is_direntry_le_ih(ih)) { in are_leaves_removable() [all …]
|
D | super.c | 231 struct item_head *ih; in finish_unfinished() local 301 ih = item_head(bh, item_pos); in finish_unfinished() 303 if (le32_to_cpu(ih->ih_key.k_dir_id) != MAX_KEY_OBJECTID) in finish_unfinished() 307 save_link_key = ih->ih_key; in finish_unfinished() 308 if (is_indirect_le_ih(ih)) in finish_unfinished() 314 item = ih_item_body(bh, ih); in finish_unfinished() 317 le32_to_cpu(ih->ih_key.k_objectid); in finish_unfinished() 435 struct item_head ih; in add_save_link() local 460 make_le_item_head(&ih, &key, key.version, in add_save_link() 474 make_le_item_head(&ih, &key, key.version, 1, TYPE_INDIRECT, in add_save_link() [all …]
|
D | ibalance.c | 134 struct reiserfs_key *ih; in internal_insert_childs() local 164 ih = internal_key(cur, ((to == -1) ? 0 : to)); in internal_insert_childs() 166 memmove(ih + count, ih, in internal_insert_childs() 170 memcpy(ih, inserted, KEY_SIZE); in internal_insert_childs() 172 memcpy(ih + 1, inserted + 1, KEY_SIZE); in internal_insert_childs()
|
D | bitmap.c | 858 struct item_head *ih; in get_left_neighbor() local 873 ih = tp_item_head(path); in get_left_neighbor() 883 if (!hint->formatted_node && is_indirect_le_ih(ih)) { in get_left_neighbor() 884 if (pos_in_item == I_UNFM_NUM(ih)) in get_left_neighbor()
|
D | namei.c | 31 struct item_head *ih = de->de_ih; in bin_search_in_dir_item() local 36 rbound = ih_entry_count(ih) - 1; in bin_search_in_dir_item()
|
/fs/coda/ |
D | upcall.c | 53 inp->ih.opcode = opcode; in alloc_upcall() 54 inp->ih.pid = task_pid_nr_ns(current, &init_pid_ns); in alloc_upcall() 55 inp->ih.pgid = task_pgrp_nr_ns(current, &init_pid_ns); in alloc_upcall() 56 inp->ih.uid = from_kuid(&init_user_ns, current_fsuid()); in alloc_upcall() 170 inp->ih.uid = from_kuid(&init_user_ns, uid); in venus_close() 733 buffer->ih.unique = ++vcp->vc_seq; in coda_upcall() 739 req->uc_opcode = buffer->ih.opcode; in coda_upcall() 740 req->uc_unique = buffer->ih.unique; in coda_upcall() 800 sig_inputArgs->ih.opcode = CODA_SIGNAL; in coda_upcall() 801 sig_inputArgs->ih.unique = req->uc_unique; in coda_upcall() [all …]
|
/fs/fuse/ |
D | dev.c | 1071 struct fuse_in_header ih; in fuse_read_interrupt() local 1073 unsigned reqsize = sizeof(ih) + sizeof(arg); in fuse_read_interrupt() 1077 memset(&ih, 0, sizeof(ih)); in fuse_read_interrupt() 1079 ih.len = reqsize; in fuse_read_interrupt() 1080 ih.opcode = FUSE_INTERRUPT; in fuse_read_interrupt() 1081 ih.unique = (req->in.h.unique | FUSE_INT_REQ_BIT); in fuse_read_interrupt() 1088 err = fuse_copy_one(cs, &ih, sizeof(ih)); in fuse_read_interrupt() 1129 struct fuse_in_header ih = { in fuse_read_single_forget() local 1133 .len = sizeof(ih) + sizeof(arg), in fuse_read_single_forget() 1138 if (nbytes < ih.len) in fuse_read_single_forget() [all …]
|
D | virtio_fs.c | 72 struct fuse_in_header ih; member 1001 req->ih = (struct fuse_in_header){ in virtio_fs_wake_forget_and_unlock()
|
/fs/jfs/ |
D | jfs_dtree.c | 3590 struct idtentry *ih; in dtCompare() local 3612 ih = (struct idtentry *) & p->slot[si]; in dtCompare() 3613 si = ih->next; in dtCompare() 3614 name = ih->name; in dtCompare() 3615 namlen = ih->namlen; in dtCompare() 3668 struct idtentry *ih; in ciCompare() local 3708 ih = (struct idtentry *) & p->slot[si]; in ciCompare() 3709 si = ih->next; in ciCompare() 3710 name = ih->name; in ciCompare() 3711 namlen = ih->namlen; in ciCompare() [all …]
|
/fs/erofs/ |
D | xattr.c | 44 struct erofs_xattr_ibody_header *ih; in init_inode_xattrs() local 108 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs() 110 vi->xattr_shared_count = ih->h_shared_count; in init_inode_xattrs()
|