/fs/btrfs/ |
D | uuid-tree.c | 29 u32 item_size; in btrfs_uuid_tree_lookup() local 55 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_lookup() 59 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_lookup() 62 (unsigned long)item_size); in btrfs_uuid_tree_lookup() 65 while (item_size) { in btrfs_uuid_tree_lookup() 74 item_size -= sizeof(data); in btrfs_uuid_tree_lookup() 157 u32 item_size; in btrfs_uuid_tree_remove() local 189 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_remove() 190 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_remove() 192 (unsigned long)item_size); in btrfs_uuid_tree_remove() [all …]
|
D | inode-item.c | 18 u32 item_size; in btrfs_find_name_in_backref() local 22 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_find_name_in_backref() 24 while (cur_offset < item_size) { in btrfs_find_name_in_backref() 44 u32 item_size; in btrfs_find_name_in_ext_backref() local 48 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_find_name_in_ext_backref() 57 while (cur_offset < item_size) { in btrfs_find_name_in_ext_backref() 112 u32 item_size; in btrfs_del_inode_extref() local 142 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref() 146 if (del_len == item_size) { in btrfs_del_inode_extref() 159 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref() [all …]
|
D | tree-checker.c | 205 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_extent_data_item() local 230 if (unlikely(item_size < BTRFS_FILE_EXTENT_INLINE_DATA_START)) { in check_extent_data_item() 233 item_size, BTRFS_FILE_EXTENT_INLINE_DATA_START, in check_extent_data_item() 279 if (unlikely(item_size != BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item() 283 item_size, BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item() 291 if (unlikely(item_size != sizeof(*fi))) { in check_extent_data_item() 294 item_size, sizeof(*fi)); in check_extent_data_item() 500 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_dir_item() local 507 while (cur < item_size) { in check_dir_item() 518 if (unlikely(cur + sizeof(*di) > item_size)) { in check_dir_item() [all …]
|
D | print-tree.c | 88 u32 item_size = btrfs_item_size_nr(eb, slot); in print_extent_item() local 93 if (unlikely(item_size < sizeof(*ei))) { in print_extent_item() 120 end = (unsigned long)ei + item_size; in print_extent_item() 169 u32 item_size) in print_uuid_item() argument 171 if (!IS_ALIGNED(item_size, sizeof(u64))) { in print_uuid_item() 173 (unsigned long)item_size); in print_uuid_item() 176 while (item_size) { in print_uuid_item() 181 item_size -= sizeof(u64); in print_uuid_item()
|
D | xattr.c | 171 const u32 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_setxattr() local 185 if (old_data_len + name_len + sizeof(*di) == item_size) { in btrfs_setxattr() 308 u32 item_size; in btrfs_listxattr() local 339 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_listxattr() 341 while (cur < item_size) { in btrfs_listxattr()
|
D | backref.c | 978 u64 item_size; in add_inline_refs() local 986 item_size = btrfs_item_size_nr(leaf, slot); in add_inline_refs() 987 BUG_ON(item_size < sizeof(*ei)); in add_inline_refs() 994 end = (unsigned long)ei + item_size; in add_inline_refs() 1793 u32 item_size; local 1829 item_size = btrfs_item_size_nr(eb, path->slots[0]); 1830 BUG_ON(item_size < sizeof(*ei)); 1838 found_key->offset, flags, item_size); 1866 u32 item_size, argument 1892 if ((unsigned long)(*ptr) >= (unsigned long)ei + item_size) [all …]
|
D | tree-log.c | 392 u32 item_size; in overwrite_item() local 403 item_size = btrfs_item_size_nr(eb, slot); in overwrite_item() 416 if (dst_size != item_size) in overwrite_item() 419 if (item_size == 0) { in overwrite_item() 423 dst_copy = kmalloc(item_size, GFP_NOFS); in overwrite_item() 424 src_copy = kmalloc(item_size, GFP_NOFS); in overwrite_item() 432 read_extent_buffer(eb, src_copy, src_ptr, item_size); in overwrite_item() 436 item_size); in overwrite_item() 437 ret = memcmp(dst_copy, src_copy, item_size); in overwrite_item() 502 key, item_size); in overwrite_item() [all …]
|
D | extent-tree.c | 125 u32 item_size; in btrfs_lookup_extent_info() local 174 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info() 175 if (item_size >= sizeof(*ei)) { in btrfs_lookup_extent_info() 796 u64 item_size; in lookup_inline_extent_backref() local 873 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref() 874 if (unlikely(item_size < sizeof(*ei))) { in lookup_inline_extent_backref() 885 end = (unsigned long)ei + item_size; in lookup_inline_extent_backref() 950 if (item_size + extra_size >= in lookup_inline_extent_backref() 1085 u32 item_size; in update_inline_extent_backref() local 1127 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in update_inline_extent_backref() [all …]
|
D | ctree.c | 770 unsigned long p, int item_size, in generic_bin_search() argument 794 offset = p + mid * item_size; in generic_bin_search() 3521 u32 item_size; in setup_leaf_for_split() local 3533 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in setup_leaf_for_split() 3553 if (item_size != btrfs_item_size_nr(leaf, path->slots[0])) in setup_leaf_for_split() 3589 u32 item_size; in split_item() local 3598 item_size = btrfs_item_size(leaf, item); in split_item() 3600 buf = kmalloc(item_size, GFP_NOFS); in split_item() 3605 path->slots[0]), item_size); in split_item() 3622 btrfs_set_item_size(leaf, new_item, item_size - split_offset); in split_item() [all …]
|
D | dev-replace.c | 81 int item_size; in btrfs_init_dev_replace() local 131 item_size = btrfs_item_size_nr(eb, slot); in btrfs_init_dev_replace() 134 if (item_size != sizeof(struct btrfs_dev_replace_item)) { in btrfs_init_dev_replace()
|
D | volumes.c | 4664 u32 item_size; in btrfs_uuid_scan_kthread() local 4699 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_scan_kthread() 4700 if (item_size < sizeof(root_item)) in btrfs_uuid_scan_kthread() 5026 struct btrfs_chunk *chunk, int item_size) in btrfs_add_system_chunk() argument 5036 if (array_size + item_size + sizeof(disk_key) in btrfs_add_system_chunk() 5044 memcpy(ptr, chunk, item_size); in btrfs_add_system_chunk() 5045 item_size += sizeof(disk_key); in btrfs_add_system_chunk() 5046 btrfs_set_super_sys_array_size(super_copy, array_size + item_size); in btrfs_add_system_chunk() 5567 size_t item_size; in btrfs_chunk_alloc_add_chunk_item() local 5603 item_size = btrfs_chunk_item_size(map->num_stripes); in btrfs_chunk_alloc_add_chunk_item() [all …]
|
D | file-item.c | 1017 u32 item_size; in btrfs_csum_file_blocks() local 1020 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_csum_file_blocks() 1021 if ((item_size / csum_size) >= in btrfs_csum_file_blocks()
|
D | backref.h | 29 u32 item_size, u64 *out_root, u8 *out_level);
|
D | ref-verify.c | 438 u32 item_size = btrfs_item_size_nr(leaf, slot); in process_extent_item() local 460 end = (unsigned long)ei + item_size; in process_extent_item()
|
D | check-integrity.c | 936 u32 item_size; in btrfsic_process_metablock() local 951 item_size = btrfs_stack_item_size(&disk_item); in btrfsic_process_metablock() 962 if (root_item_offset + item_size > in btrfsic_process_metablock() 968 item_size); in btrfsic_process_metablock()
|
D | relocation.c | 3184 u32 item_size; in add_tree_block() local 3190 item_size = btrfs_item_size_nr(eb, path->slots[0]); in add_tree_block() 3193 item_size >= sizeof(*ei) + sizeof(*bi)) { in add_tree_block() 3198 end = (unsigned long)ei + item_size; in add_tree_block() 3239 } else if (unlikely(item_size == sizeof(struct btrfs_extent_item_v0))) { in add_tree_block()
|
D | send.c | 3632 u32 item_size; in is_ancestor() local 3650 item_size = btrfs_item_size_nr(leaf, slot); in is_ancestor() 3651 while (cur_offset < item_size) { in is_ancestor() 3669 cur_offset = item_size; in is_ancestor() 6606 u32 item_size; in compare_refs() local 6620 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in compare_refs() 6622 while (cur_offset < item_size) { in compare_refs()
|
D | scrub.c | 734 u32 item_size; in scrub_print_warning() local 761 item_size = btrfs_item_size_nr(eb, path->slots[0]); in scrub_print_warning() 766 item_size, &ref_root, in scrub_print_warning()
|
D | ctree.h | 1985 BTRFS_SETGET_FUNCS(item_size, struct btrfs_item, size, 32);
|