/fs/btrfs/ |
D | uuid-tree.c | 41 u32 item_size; in btrfs_uuid_tree_lookup() local 67 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_lookup() 71 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_lookup() 74 (unsigned long)item_size); in btrfs_uuid_tree_lookup() 77 while (item_size) { in btrfs_uuid_tree_lookup() 86 item_size -= sizeof(data); in btrfs_uuid_tree_lookup() 168 u32 item_size; in btrfs_uuid_tree_rem() local 200 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_rem() 201 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_rem() 204 (unsigned long)item_size); in btrfs_uuid_tree_rem() [all …]
|
D | inode-item.c | 32 u32 item_size; in find_name_in_backref() local 37 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in find_name_in_backref() 39 while (cur_offset < item_size) { in find_name_in_backref() 62 u32 item_size; in btrfs_find_name_in_ext_backref() local 67 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_find_name_in_ext_backref() 76 while (cur_offset < item_size) { in btrfs_find_name_in_ext_backref() 135 u32 item_size; in btrfs_del_inode_extref() local 166 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref() 170 if (del_len == item_size) { in btrfs_del_inode_extref() 183 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref() [all …]
|
D | print-tree.c | 63 u32 item_size = btrfs_item_size_nr(eb, slot); in print_extent_item() local 67 if (item_size < sizeof(*ei)) { in print_extent_item() 70 BUG_ON(item_size != sizeof(*ei0)); in print_extent_item() 102 end = (unsigned long)ei + item_size; in print_extent_item() 146 u32 item_size) in print_uuid_item() argument 148 if (!IS_ALIGNED(item_size, sizeof(u64))) { in print_uuid_item() 150 (unsigned long)item_size); in print_uuid_item() 153 while (item_size) { in print_uuid_item() 159 item_size -= sizeof(u64); in print_uuid_item()
|
D | xattr.c | 181 const u32 item_size = btrfs_item_size_nr(leaf, slot); in do_setxattr() local 195 if (old_data_len + name_len + sizeof(*di) == item_size) { in do_setxattr() 297 u32 item_size; in btrfs_listxattr() local 328 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_listxattr() 330 while (cur < item_size) { in btrfs_listxattr()
|
D | backref.c | 975 u64 item_size; in __add_inline_refs() local 983 item_size = btrfs_item_size_nr(leaf, slot); in __add_inline_refs() 984 BUG_ON(item_size < sizeof(*ei)); in __add_inline_refs() 992 end = (unsigned long)ei + item_size; in __add_inline_refs() 1808 u32 item_size; local 1844 item_size = btrfs_item_size_nr(eb, path->slots[0]); 1845 BUG_ON(item_size < sizeof(*ei)); 1853 found_key->offset, flags, item_size); 1879 struct btrfs_extent_item *ei, u32 item_size, argument 1905 if ((unsigned long)(*ptr) >= (unsigned long)ei + item_size) [all …]
|
D | tree-log.c | 345 u32 item_size; in overwrite_item() local 356 item_size = btrfs_item_size_nr(eb, slot); in overwrite_item() 369 if (dst_size != item_size) in overwrite_item() 372 if (item_size == 0) { in overwrite_item() 376 dst_copy = kmalloc(item_size, GFP_NOFS); in overwrite_item() 377 src_copy = kmalloc(item_size, GFP_NOFS); in overwrite_item() 385 read_extent_buffer(eb, src_copy, src_ptr, item_size); in overwrite_item() 389 item_size); in overwrite_item() 390 ret = memcmp(dst_copy, src_copy, item_size); in overwrite_item() 455 key, item_size); in overwrite_item() [all …]
|
D | file-item.c | 238 u32 item_size; in __btrfs_lookup_bio_sums() local 265 item_size = btrfs_item_size_nr(path->nodes[0], in __btrfs_lookup_bio_sums() 268 (item_size / csum_size) * in __btrfs_lookup_bio_sums() 767 u32 item_size; in btrfs_csum_file_blocks() local 770 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_csum_file_blocks() 771 if ((item_size / csum_size) >= in btrfs_csum_file_blocks()
|
D | ctree.c | 1731 int item_size, struct btrfs_key *key, in generic_bin_search() argument 1756 offset = p + mid * item_size; in generic_bin_search() 4348 u32 item_size; in setup_leaf_for_split() local 4360 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in setup_leaf_for_split() 4380 if (item_size != btrfs_item_size_nr(leaf, path->slots[0])) in setup_leaf_for_split() 4419 u32 item_size; in split_item() local 4430 item_size = btrfs_item_size(leaf, item); in split_item() 4432 buf = kmalloc(item_size, GFP_NOFS); in split_item() 4437 path->slots[0]), item_size); in split_item() 4454 btrfs_set_item_size(leaf, new_item, item_size - split_offset); in split_item() [all …]
|
D | backref.h | 41 u32 item_size, u64 *out_root, u8 *out_level);
|
D | relocation.c | 631 u32 item_size; in find_inline_backref() local 635 item_size = btrfs_item_size_nr(leaf, slot); in find_inline_backref() 637 if (item_size < sizeof(*ei)) { in find_inline_backref() 638 WARN_ON(item_size != sizeof(struct btrfs_extent_item_v0)); in find_inline_backref() 647 item_size <= sizeof(*ei) + sizeof(*bi)) { in find_inline_backref() 648 WARN_ON(item_size < sizeof(*ei) + sizeof(*bi)); in find_inline_backref() 652 item_size <= sizeof(*ei)) { in find_inline_backref() 653 WARN_ON(item_size < sizeof(*ei)); in find_inline_backref() 663 *end = (unsigned long)ei + item_size; in find_inline_backref() 3342 u32 item_size; local [all …]
|
D | extent-tree.c | 819 u32 item_size; in btrfs_lookup_extent_info() local 869 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info() 870 if (item_size >= sizeof(*ei)) { in btrfs_lookup_extent_info() 878 BUG_ON(item_size != sizeof(*ei0)); in btrfs_lookup_extent_info() 1548 u64 item_size; in lookup_inline_extent_backref() local 1619 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref() 1621 if (item_size < sizeof(*ei)) { in lookup_inline_extent_backref() 1633 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref() 1636 BUG_ON(item_size < sizeof(*ei)); in lookup_inline_extent_backref() 1642 end = (unsigned long)ei + item_size; in lookup_inline_extent_backref() [all …]
|
D | dev-replace.c | 61 int item_size; in btrfs_init_dev_replace() local 99 item_size = btrfs_item_size_nr(eb, slot); in btrfs_init_dev_replace() 102 if (item_size != sizeof(struct btrfs_dev_replace_item)) { in btrfs_init_dev_replace()
|
D | volumes.c | 4112 u32 item_size; in btrfs_uuid_scan_kthread() local 4145 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_scan_kthread() 4146 if (item_size < sizeof(root_item)) in btrfs_uuid_scan_kthread() 4533 struct btrfs_chunk *chunk, int item_size) in btrfs_add_system_chunk() argument 4542 if (array_size + item_size + sizeof(disk_key) in btrfs_add_system_chunk() 4552 memcpy(ptr, chunk, item_size); in btrfs_add_system_chunk() 4553 item_size += sizeof(disk_key); in btrfs_add_system_chunk() 4554 btrfs_set_super_sys_array_size(super_copy, array_size + item_size); in btrfs_add_system_chunk() 4911 size_t item_size; in btrfs_finish_chunk_alloc() local 4938 item_size = btrfs_chunk_item_size(map->num_stripes); in btrfs_finish_chunk_alloc() [all …]
|
D | check-integrity.c | 1015 u32 item_size; in btrfsic_process_metablock() local 1030 item_size = btrfs_stack_item_size(&disk_item); in btrfsic_process_metablock() 1041 if (root_item_offset + item_size > in btrfsic_process_metablock() 1047 item_size); in btrfsic_process_metablock()
|
D | scrub.c | 615 u32 item_size; in scrub_print_warning() local 642 item_size = btrfs_item_size_nr(eb, path->slots[0]); in scrub_print_warning() 647 item_size, &ref_root, in scrub_print_warning()
|
D | send.c | 5926 u32 item_size; in compare_refs() local 5940 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in compare_refs() 5942 while (cur_offset < item_size) { in compare_refs()
|
D | ctree.h | 1835 BTRFS_SETGET_FUNCS(item_size, struct btrfs_item, size, 32);
|