Home
last modified time | relevance | path

Searched refs:item_size (Results 1 – 18 of 18) sorted by relevance

/fs/btrfs/
Duuid-tree.c29 u32 item_size; in btrfs_uuid_tree_lookup() local
55 item_size = btrfs_item_size(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(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 …]
Dinode-item.c19 u32 item_size; in btrfs_find_name_in_backref() local
23 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_backref()
25 while (cur_offset < item_size) { in btrfs_find_name_in_backref()
46 u32 item_size; in btrfs_find_name_in_ext_backref() local
50 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_ext_backref()
59 while (cur_offset < item_size) { in btrfs_find_name_in_ext_backref()
115 u32 item_size; in btrfs_del_inode_extref() local
145 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref()
149 if (del_len == item_size) { in btrfs_del_inode_extref()
162 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref()
[all …]
Dtree-checker.c205 u32 item_size = btrfs_item_size(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(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 …]
Dprint-tree.c89 u32 item_size = btrfs_item_size(eb, slot); in print_extent_item() local
94 if (unlikely(item_size < sizeof(*ei))) { in print_extent_item()
121 end = (unsigned long)ei + item_size; in print_extent_item()
170 u32 item_size) in print_uuid_item() argument
172 if (!IS_ALIGNED(item_size, sizeof(u64))) { in print_uuid_item()
174 (unsigned long)item_size); in print_uuid_item()
177 while (item_size) { in print_uuid_item()
182 item_size -= sizeof(u64); in print_uuid_item()
Dxattr.c171 const u32 item_size = btrfs_item_size(leaf, slot); in btrfs_setxattr() local
184 if (old_data_len + name_len + sizeof(*di) == item_size) { in btrfs_setxattr()
303 u32 item_size; in btrfs_listxattr() local
318 item_size = btrfs_item_size(leaf, slot); in btrfs_listxattr()
320 while (cur < item_size) { in btrfs_listxattr()
Dbackref.c980 u64 item_size; in add_inline_refs() local
988 item_size = btrfs_item_size(leaf, slot); in add_inline_refs()
989 BUG_ON(item_size < sizeof(*ei)); in add_inline_refs()
996 end = (unsigned long)ei + item_size; in add_inline_refs()
1964 u32 item_size; in extent_from_logical() local
2000 item_size = btrfs_item_size(eb, path->slots[0]); in extent_from_logical()
2001 BUG_ON(item_size < sizeof(*ei)); in extent_from_logical()
2009 found_key->offset, flags, item_size); in extent_from_logical()
2037 u32 item_size, in get_extent_inline_ref() argument
2063 if ((unsigned long)(*ptr) >= (unsigned long)ei + item_size) in get_extent_inline_ref()
[all …]
Dtree-log.c361 u32 item_size; in do_overwrite_item() local
372 item_size = btrfs_item_size(eb, slot); in do_overwrite_item()
397 if (dst_size != item_size) in do_overwrite_item()
400 if (item_size == 0) { in do_overwrite_item()
404 dst_copy = kmalloc(item_size, GFP_NOFS); in do_overwrite_item()
405 src_copy = kmalloc(item_size, GFP_NOFS); in do_overwrite_item()
413 read_extent_buffer(eb, src_copy, src_ptr, item_size); in do_overwrite_item()
417 item_size); in do_overwrite_item()
418 ret = memcmp(dst_copy, src_copy, item_size); in do_overwrite_item()
483 key, item_size); in do_overwrite_item()
[all …]
Dctree.c793 int item_size; in generic_bin_search() local
808 item_size = sizeof(struct btrfs_item); in generic_bin_search()
811 item_size = sizeof(struct btrfs_key_ptr); in generic_bin_search()
822 offset = p + mid * item_size; in generic_bin_search()
3718 u32 item_size; in setup_leaf_for_split() local
3730 item_size = btrfs_item_size(leaf, path->slots[0]); in setup_leaf_for_split()
3750 if (item_size != btrfs_item_size(leaf, path->slots[0])) in setup_leaf_for_split()
3784 u32 item_size; in split_item() local
3793 item_size = btrfs_item_size(leaf, path->slots[0]); in split_item()
3795 buf = kmalloc(item_size, GFP_NOFS); in split_item()
[all …]
Dextent-tree.c127 u32 item_size; in btrfs_lookup_extent_info() local
177 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_extent_info()
178 if (item_size >= sizeof(*ei)) { in btrfs_lookup_extent_info()
799 u64 item_size; in lookup_inline_extent_backref() local
876 item_size = btrfs_item_size(leaf, path->slots[0]); in lookup_inline_extent_backref()
877 if (unlikely(item_size < sizeof(*ei))) { in lookup_inline_extent_backref()
888 end = (unsigned long)ei + item_size; in lookup_inline_extent_backref()
959 if (item_size + extra_size >= in lookup_inline_extent_backref()
1093 u32 item_size; in update_inline_extent_backref() local
1134 item_size = btrfs_item_size(leaf, path->slots[0]); in update_inline_extent_backref()
[all …]
Ddev-replace.c81 int item_size; in btrfs_init_dev_replace() local
131 item_size = btrfs_item_size(eb, slot); in btrfs_init_dev_replace()
134 if (item_size != sizeof(struct btrfs_dev_replace_item)) { in btrfs_init_dev_replace()
Dvolumes.c4680 u32 item_size; in btrfs_uuid_scan_kthread() local
4715 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_scan_kthread()
4716 if (item_size < sizeof(root_item)) in btrfs_uuid_scan_kthread()
5042 struct btrfs_chunk *chunk, int item_size) in btrfs_add_system_chunk() argument
5052 if (array_size + item_size + sizeof(disk_key) in btrfs_add_system_chunk()
5060 memcpy(ptr, chunk, item_size); in btrfs_add_system_chunk()
5061 item_size += sizeof(disk_key); in btrfs_add_system_chunk()
5062 btrfs_set_super_sys_array_size(super_copy, array_size + item_size); in btrfs_add_system_chunk()
5575 size_t item_size; in btrfs_chunk_alloc_add_chunk_item() local
5611 item_size = btrfs_chunk_item_size(map->num_stripes); in btrfs_chunk_alloc_add_chunk_item()
[all …]
Dfile-item.c1034 u32 item_size; in btrfs_csum_file_blocks() local
1037 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1038 if ((item_size / csum_size) >= in btrfs_csum_file_blocks()
Dbackref.h44 u32 item_size, u64 *out_root, u8 *out_level);
Dref-verify.c438 u32 item_size = btrfs_item_size(leaf, slot); in process_extent_item() local
460 end = (unsigned long)ei + item_size; in process_extent_item()
Dcheck-integrity.c933 u32 item_size; in btrfsic_process_metablock() local
949 item_size = btrfs_stack_item_size(&disk_item); in btrfsic_process_metablock()
960 if (root_item_offset + item_size > in btrfsic_process_metablock()
966 item_size); in btrfsic_process_metablock()
Drelocation.c3179 u32 item_size; in add_tree_block() local
3185 item_size = btrfs_item_size(eb, path->slots[0]); in add_tree_block()
3188 item_size >= sizeof(*ei) + sizeof(*bi)) { in add_tree_block()
3193 end = (unsigned long)ei + item_size; in add_tree_block()
3234 } else if (unlikely(item_size == sizeof(struct btrfs_extent_item_v0))) { in add_tree_block()
Dsend.c3661 u32 item_size; in is_ancestor() local
3669 item_size = btrfs_item_size(leaf, slot); in is_ancestor()
3670 while (cur_offset < item_size) { in is_ancestor()
3688 cur_offset = item_size; in is_ancestor()
6897 u32 item_size; in compare_refs() local
6911 item_size = btrfs_item_size(leaf, path->slots[0]); in compare_refs()
6913 while (cur_offset < item_size) { in compare_refs()
Dscrub.c900 u32 item_size; in scrub_print_warning() local
934 item_size = btrfs_item_size(eb, path->slots[0]); in scrub_print_warning()
939 item_size, &ref_root, in scrub_print_warning()