Lines Matching refs:slots

181 	item = btrfs_item_ptr(leaf, path->slots[0],  in btrfs_insert_hole_extent()
225 if (path->slots[0] == 0) in btrfs_lookup_csum()
227 path->slots[0]--; in btrfs_lookup_csum()
228 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
234 csums_in_item = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csum()
244 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
298 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
300 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
301 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree()
318 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
319 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree()
495 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_list()
497 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_lookup_csums_list()
517 btrfs_item_size(leaf, path->slots[0] - 1)) in btrfs_lookup_csums_list()
518 path->slots[0]--; in btrfs_lookup_csums_list()
526 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_lookup_csums_list()
535 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_lookup_csums_list()
545 btrfs_item_size(leaf, path->slots[0])); in btrfs_lookup_csums_list()
547 path->slots[0]++; in btrfs_lookup_csums_list()
556 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_csums_list()
584 path->slots[0]++; in btrfs_lookup_csums_list()
635 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in btrfs_lookup_csums_bitmap()
651 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_bitmap()
653 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_lookup_csums_bitmap()
673 btrfs_item_size(leaf, path->slots[0] - 1)) in btrfs_lookup_csums_bitmap()
674 path->slots[0]--; in btrfs_lookup_csums_bitmap()
683 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_lookup_csums_bitmap()
692 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_lookup_csums_bitmap()
702 btrfs_item_size(leaf, path->slots[0])); in btrfs_lookup_csums_bitmap()
704 path->slots[0]++; in btrfs_lookup_csums_bitmap()
709 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_csums_bitmap()
731 path->slots[0]++; in btrfs_lookup_csums_bitmap()
838 csum_end = btrfs_item_size(leaf, path->slots[0]) / csum_size; in truncate_one_csum()
903 if (path->slots[0] == 0) in btrfs_del_csums()
905 path->slots[0]--; in btrfs_del_csums()
911 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_del_csums()
921 csum_end = btrfs_item_size(leaf, path->slots[0]) / csum_size; in btrfs_del_csums()
938 if (key.offset > bytenr && path->slots[0] > 0) { in btrfs_del_csums()
939 int slot = path->slots[0] - 1; in btrfs_del_csums()
950 path->slots[0] = slot; in btrfs_del_csums()
957 path->slots[0], del_nr); in btrfs_del_csums()
990 path->slots[0]); in btrfs_del_csums()
1025 int slot = path->slots[0] + 1; in find_next_csum_offset()
1036 slot = path->slots[0]; in find_next_csum_offset()
1086 item_end = btrfs_item_ptr(leaf, path->slots[0], in btrfs_csum_file_blocks()
1089 btrfs_item_size(leaf, path->slots[0])); in btrfs_csum_file_blocks()
1100 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1126 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_csum_file_blocks()
1141 if (path->slots[0] == 0) in btrfs_csum_file_blocks()
1143 path->slots[0]--; in btrfs_csum_file_blocks()
1147 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_csum_file_blocks()
1157 if (csum_offset == btrfs_item_size(leaf, path->slots[0]) / in btrfs_csum_file_blocks()
1190 if (path->slots[0] + 1 >= in btrfs_csum_file_blocks()
1212 diff = diff - btrfs_item_size(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1245 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_csum_file_blocks()
1247 btrfs_item_size(leaf, path->slots[0])); in btrfs_csum_file_blocks()
1281 const int slot = path->slots[0]; in btrfs_extent_item_to_extent_map()
1344 const int slot = path->slots[0]; in btrfs_file_extent_end()