Lines Matching refs:slots

176 	ei = btrfs_item_ptr(leaf, path->slots[0],  in insert_inline_extent()
1272 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow()
1275 path->slots[0] - 1); in run_delalloc_nocow()
1278 path->slots[0]--; in run_delalloc_nocow()
1283 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow()
1295 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1301 path->slots[0]++; in run_delalloc_nocow()
1314 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1328 path->slots[0]++; in run_delalloc_nocow()
1368 path->slots[0], fi); in run_delalloc_nocow()
1375 path->slots[0]++; in run_delalloc_nocow()
1386 path->slots[0]++; in run_delalloc_nocow()
2097 fi = btrfs_item_ptr(leaf, path->slots[0], in insert_reserved_file_extent()
2274 slot = path->slots[0]; in record_one_backref()
2287 path->slots[0]++; in record_one_backref()
2489 extent = btrfs_item_ptr(path->nodes[0], path->slots[0], in relink_extent_backref()
2526 path->slots[0]--; in relink_extent_backref()
2528 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in relink_extent_backref()
2530 fi = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2558 item = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2697 if (ret > 0 && path->slots[0] > 0) in record_old_file_extents()
2698 path->slots[0]--; in record_old_file_extents()
2712 slot = path->slots[0]; in record_old_file_extents()
2759 path->slots[0]++; in record_old_file_extents()
3336 if (path->slots[0] == 0) in btrfs_orphan_cleanup()
3338 path->slots[0]--; in btrfs_orphan_cleanup()
3343 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3605 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode()
3653 path->slots[0]++; in btrfs_read_locked_inode()
3655 path->slots[0] >= btrfs_header_nritems(leaf)) in btrfs_read_locked_inode()
3658 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
3662 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_read_locked_inode()
3680 maybe_acls = acls_after_inode_item(leaf, path->slots[0], in btrfs_read_locked_inode()
3683 path->slots[0] = first_xattr_slot; in btrfs_read_locked_inode()
3803 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_update_inode_item()
4105 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_unlink_subvol()
4190 int slot = path->slots[0]; in truncate_inline_extent()
4327 if (path->slots[0] == 0) in btrfs_truncate_inode_items()
4329 path->slots[0]--; in btrfs_truncate_inode_items()
4335 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
4346 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_truncate_inode_items()
4354 path->slots[0], fi); in btrfs_truncate_inode_items()
4458 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
4461 path->slots[0] + 1 == pending_del_slot) { in btrfs_truncate_inode_items()
4464 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
4501 if (path->slots[0] == 0 || in btrfs_truncate_inode_items()
4502 path->slots[0] != pending_del_slot || in btrfs_truncate_inode_items()
4535 path->slots[0]--; in btrfs_truncate_inode_items()
5309 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in fixup_tree_root_location()
5701 slot = path->slots[0]; in btrfs_real_readdir()
5785 path->slots[0]++; in btrfs_real_readdir()
5959 if (path->slots[0] == 0) { in btrfs_set_inode_index_count()
5964 path->slots[0]--; in btrfs_set_inode_index_count()
5967 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
6129 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_new_inode()
6136 ref = btrfs_item_ptr(path->nodes[0], path->slots[0] + 1, in btrfs_new_inode()
6648 btrfs_item_nr(path->slots[0])); in uncompress_inline()
6740 if (path->slots[0] == 0) in btrfs_get_extent()
6742 path->slots[0]--; in btrfs_get_extent()
6746 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_extent()
6749 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6771 size = btrfs_file_extent_inline_len(leaf, path->slots[0], item); in btrfs_get_extent()
6776 path->slots[0]++; in btrfs_get_extent()
6777 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_get_extent()
6787 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6816 size = btrfs_file_extent_inline_len(leaf, path->slots[0], item); in btrfs_get_extent()
7136 slot = path->slots[0]; in can_nocow_extent()
9578 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_symlink()