Lines Matching full:slots
166 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
210 if (path->slots[0] == 0) in btrfs_lookup_csum()
212 path->slots[0]--; in btrfs_lookup_csum()
213 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
219 csums_in_item = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csum()
229 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
283 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
285 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
286 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree()
303 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
304 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree()
551 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range()
553 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_lookup_csums_range()
558 btrfs_item_size(leaf, path->slots[0] - 1)) in btrfs_lookup_csums_range()
559 path->slots[0]--; in btrfs_lookup_csums_range()
565 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_lookup_csums_range()
574 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_lookup_csums_range()
583 size = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csums_range()
586 path->slots[0]++; in btrfs_lookup_csums_range()
591 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_csums_range()
618 path->slots[0]++; in btrfs_lookup_csums_range()
771 csum_end = btrfs_item_size(leaf, path->slots[0]) / csum_size; in truncate_one_csum()
837 if (path->slots[0] == 0) in btrfs_del_csums()
839 path->slots[0]--; in btrfs_del_csums()
845 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_del_csums()
855 csum_end = btrfs_item_size(leaf, path->slots[0]) / csum_size; in btrfs_del_csums()
872 if (key.offset > bytenr && path->slots[0] > 0) { in btrfs_del_csums()
873 int slot = path->slots[0] - 1; in btrfs_del_csums()
884 path->slots[0] = slot; in btrfs_del_csums()
891 path->slots[0], del_nr); in btrfs_del_csums()
924 path->slots[0]); in btrfs_del_csums()
959 int slot = path->slots[0] + 1; in find_next_csum_offset()
970 slot = path->slots[0]; in find_next_csum_offset()
1020 item_end = btrfs_item_ptr(leaf, path->slots[0], in btrfs_csum_file_blocks()
1023 btrfs_item_size(leaf, path->slots[0])); in btrfs_csum_file_blocks()
1034 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1060 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_csum_file_blocks()
1075 if (path->slots[0] == 0) in btrfs_csum_file_blocks()
1077 path->slots[0]--; in btrfs_csum_file_blocks()
1081 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_csum_file_blocks()
1091 if (csum_offset == btrfs_item_size(leaf, path->slots[0]) / in btrfs_csum_file_blocks()
1124 if (path->slots[0] + 1 >= in btrfs_csum_file_blocks()
1146 diff = diff - btrfs_item_size(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1181 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_csum_file_blocks()
1183 btrfs_item_size(leaf, path->slots[0])); in btrfs_csum_file_blocks()
1218 const int slot = path->slots[0]; in btrfs_extent_item_to_extent_map()
1284 const int slot = path->slots[0]; in btrfs_file_extent_end()