Lines Matching refs:slots
206 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent()
1385 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow()
1388 path->slots[0] - 1); in run_delalloc_nocow()
1391 path->slots[0]--; in run_delalloc_nocow()
1397 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow()
1409 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1420 path->slots[0]++; in run_delalloc_nocow()
1443 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1461 path->slots[0]++; in run_delalloc_nocow()
1542 path->slots[0]++; in run_delalloc_nocow()
1560 path->slots[0]++; in run_delalloc_nocow()
2335 fi = btrfs_item_ptr(leaf, path->slots[0], in insert_reserved_file_extent()
2520 slot = path->slots[0]; in record_one_backref()
2533 path->slots[0]++; in record_one_backref()
2734 extent = btrfs_item_ptr(path->nodes[0], path->slots[0], in relink_extent_backref()
2771 path->slots[0]--; in relink_extent_backref()
2773 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in relink_extent_backref()
2775 fi = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2803 item = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2939 if (ret > 0 && path->slots[0] > 0) in record_old_file_extents()
2940 path->slots[0]--; in record_old_file_extents()
2954 slot = path->slots[0]; in record_old_file_extents()
3001 path->slots[0]++; in record_old_file_extents()
3511 if (path->slots[0] == 0) in btrfs_orphan_cleanup()
3513 path->slots[0]--; in btrfs_orphan_cleanup()
3518 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3761 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode()
3839 path->slots[0]++; in btrfs_read_locked_inode()
3841 path->slots[0] >= btrfs_header_nritems(leaf)) in btrfs_read_locked_inode()
3844 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
3848 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_read_locked_inode()
3866 maybe_acls = acls_after_inode_item(leaf, path->slots[0], in btrfs_read_locked_inode()
3869 path->slots[0] = first_xattr_slot; in btrfs_read_locked_inode()
3985 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_update_inode_item()
4285 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_unlink_subvol()
4358 if (path->slots[0] > 0) { in may_destroy_subvol()
4359 path->slots[0]--; in may_destroy_subvol()
4360 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in may_destroy_subvol()
4728 if (path->slots[0] == 0) in btrfs_truncate_inode_items()
4730 path->slots[0]--; in btrfs_truncate_inode_items()
4736 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
4747 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_truncate_inode_items()
4762 BTRFS_I(inode), leaf, fi, path->slots[0], in btrfs_truncate_inode_items()
4850 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
4853 path->slots[0] + 1 == pending_del_slot) { in btrfs_truncate_inode_items()
4856 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
4892 if (path->slots[0] == 0 || in btrfs_truncate_inode_items()
4893 path->slots[0] != pending_del_slot || in btrfs_truncate_inode_items()
4927 path->slots[0]--; in btrfs_truncate_inode_items()
5661 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in fixup_tree_root_location()
6061 slot = path->slots[0]; in btrfs_real_readdir()
6109 path->slots[0]++; in btrfs_real_readdir()
6247 if (path->slots[0] == 0) { in btrfs_set_inode_index_count()
6252 path->slots[0]--; in btrfs_set_inode_index_count()
6255 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
6454 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_new_inode()
6461 ref = btrfs_item_ptr(path->nodes[0], path->slots[0] + 1, in btrfs_new_inode()
6903 btrfs_item_nr(path->slots[0])); in uncompress_inline()
7007 if (path->slots[0] == 0) in btrfs_get_extent()
7009 path->slots[0]--; in btrfs_get_extent()
7013 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_extent()
7015 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
7053 path->slots[0], in btrfs_get_extent()
7058 path->slots[0]++; in btrfs_get_extent()
7059 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_get_extent()
7069 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
7396 slot = path->slots[0]; in can_nocow_extent()
10342 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_symlink()