Lines Matching refs:slots

158 	item = btrfs_item_ptr(leaf, path->slots[0],  in btrfs_insert_file_extent()
202 if (path->slots[0] == 0) in btrfs_lookup_csum()
204 path->slots[0]--; in btrfs_lookup_csum()
205 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
211 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
221 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
274 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
276 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
277 itemsize = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in search_csum_tree()
293 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
294 itemsize = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in search_csum_tree()
530 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range()
532 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_lookup_csums_range()
537 btrfs_item_size_nr(leaf, path->slots[0] - 1)) in btrfs_lookup_csums_range()
538 path->slots[0]--; in btrfs_lookup_csums_range()
544 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_lookup_csums_range()
553 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_lookup_csums_range()
562 size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csums_range()
565 path->slots[0]++; in btrfs_lookup_csums_range()
570 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_csums_range()
597 path->slots[0]++; in btrfs_lookup_csums_range()
753 csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; in truncate_one_csum()
819 if (path->slots[0] == 0) in btrfs_del_csums()
821 path->slots[0]--; in btrfs_del_csums()
827 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_del_csums()
837 csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; in btrfs_del_csums()
854 if (key.offset > bytenr && path->slots[0] > 0) { in btrfs_del_csums()
855 int slot = path->slots[0] - 1; in btrfs_del_csums()
866 path->slots[0] = slot; in btrfs_del_csums()
873 path->slots[0], del_nr); in btrfs_del_csums()
906 path->slots[0]); in btrfs_del_csums()
941 int slot = path->slots[0] + 1; in find_next_csum_offset()
952 slot = path->slots[0]; in find_next_csum_offset()
1002 item_end = btrfs_item_ptr(leaf, path->slots[0], in btrfs_csum_file_blocks()
1005 btrfs_item_size_nr(leaf, path->slots[0])); in btrfs_csum_file_blocks()
1016 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1042 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_csum_file_blocks()
1057 if (path->slots[0] == 0) in btrfs_csum_file_blocks()
1059 path->slots[0]--; in btrfs_csum_file_blocks()
1063 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_csum_file_blocks()
1073 if (csum_offset == btrfs_item_size_nr(leaf, path->slots[0]) / in btrfs_csum_file_blocks()
1106 if (path->slots[0] + 1 >= in btrfs_csum_file_blocks()
1128 diff = diff - btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_csum_file_blocks()
1163 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_csum_file_blocks()
1165 btrfs_item_size_nr(leaf, path->slots[0])); in btrfs_csum_file_blocks()
1200 const int slot = path->slots[0]; in btrfs_extent_item_to_extent_map()
1265 const int slot = path->slots[0]; in btrfs_file_extent_end()