Lines Matching refs:objectid

189 		key.objectid = btrfs_ino(BTRFS_I(inode));  in insert_inline_extent()
805 ins.objectid, /* block_start */ in submit_compressed_extents()
818 ins.objectid, in submit_compressed_extents()
830 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents()
846 ins.objectid, in submit_compressed_extents()
865 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents()
871 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents()
872 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 1); in submit_compressed_extents()
1011 ins.objectid, /* block_start */ in cow_file_range()
1023 ret = btrfs_add_ordered_extent(inode, start, ins.objectid, in cow_file_range()
1028 if (root->root_key.objectid == in cow_file_range()
1048 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in cow_file_range()
1069 alloc_hint = ins.objectid + ins.offset; in cow_file_range()
1087 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in cow_file_range()
1088 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 1); in cow_file_range()
1307 if (found_key.objectid == ino && in run_delalloc_nocow()
1331 if (found_key.objectid > ino) in run_delalloc_nocow()
1333 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
1503 if (root->root_key.objectid == in run_delalloc_nocow()
1856 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_bit_hook()
2011 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_bio_hook()
2218 ins.objectid = btrfs_ino(BTRFS_I(inode)); in insert_reserved_file_extent()
2247 ins.objectid = disk_bytenr; in insert_reserved_file_extent()
2380 if (BTRFS_I(inode)->root->root_key.objectid == root_id && in record_one_backref()
2384 key.objectid = root_id; in record_one_backref()
2398 key.objectid = inum; in record_one_backref()
2431 if (key.objectid > inum) in record_one_backref()
2434 if (key.objectid < inum || key.type != BTRFS_EXTENT_DATA_KEY) in record_one_backref()
2565 key.objectid = backref->root_id; in relink_extent_backref()
2585 key.objectid = backref->inum; in relink_extent_backref()
2615 key.objectid = backref->inum; in relink_extent_backref()
2650 key.objectid = btrfs_ino(BTRFS_I(inode)); in relink_extent_backref()
2827 key.objectid = btrfs_ino(BTRFS_I(inode)); in record_old_file_extents()
2862 if (key.objectid != btrfs_ino(BTRFS_I(inode))) in record_old_file_extents()
3237 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_readpage_end_io_hook()
3342 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_orphan_cleanup()
3368 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3391 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3418 if (dead_root->root_key.objectid == in btrfs_orphan_cleanup()
3419 found_key.objectid) { in btrfs_orphan_cleanup()
3427 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3461 found_key.objectid); in btrfs_orphan_cleanup()
3463 found_key.objectid); in btrfs_orphan_cleanup()
3505 int slot, u64 objectid, in acls_after_inode_item() argument
3527 if (found_key.objectid != objectid) in acls_after_inode_item()
3690 if (location.objectid != btrfs_ino(BTRFS_I(inode))) in btrfs_read_locked_inode()
3720 root->root_key.objectid, ret); in btrfs_read_locked_inode()
3858 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode()
4059 struct inode *dir, u64 objectid, in btrfs_unlink_subvol() argument
4087 WARN_ON(key.type != BTRFS_ROOT_ITEM_KEY || key.objectid != objectid); in btrfs_unlink_subvol()
4095 ret = btrfs_del_root_ref(trans, objectid, root->root_key.objectid, in btrfs_unlink_subvol()
4159 if (key.objectid == root->root_key.objectid) { in may_destroy_subvol()
4163 key.objectid); in may_destroy_subvol()
4169 key.objectid = root->root_key.objectid; in may_destroy_subvol()
4182 if (key.objectid == root->root_key.objectid && in may_destroy_subvol()
4199 u64 objectid = 0; in btrfs_prune_dentries() local
4212 if (objectid < btrfs_ino(entry)) in btrfs_prune_dentries()
4214 else if (objectid > btrfs_ino(entry)) in btrfs_prune_dentries()
4222 if (objectid <= btrfs_ino(entry)) { in btrfs_prune_dentries()
4231 objectid = btrfs_ino(entry) + 1; in btrfs_prune_dentries()
4282 dest->root_key.objectid); in btrfs_delete_subvolume()
4312 ret = btrfs_unlink_subvol(trans, dir, dest->root_key.objectid, in btrfs_delete_subvolume()
4330 dest->root_key.objectid); in btrfs_delete_subvolume()
4340 dest->root_key.objectid); in btrfs_delete_subvolume()
4350 dest->root_key.objectid); in btrfs_delete_subvolume()
4409 BTRFS_I(inode)->location.objectid, in btrfs_rmdir()
4554 key.objectid = ino; in btrfs_truncate_inode_items()
4591 if (found_key.objectid != ino) in btrfs_truncate_inode_items()
4796 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_truncate_inode_items()
5370 root->root_key.objectid != BTRFS_ROOT_TREE_OBJECTID) || in btrfs_evict_inode()
5387 root->root_key.objectid != BTRFS_ROOT_TREE_OBJECTID); in btrfs_evict_inode()
5438 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID)) in btrfs_evict_inode()
5490 location->objectid, location->type, location->offset); in btrfs_inode_by_name()
5523 key.objectid = BTRFS_I(dir)->root->root_key.objectid; in fixup_tree_root_location()
5525 key.offset = location->objectid; in fixup_tree_root_location()
5555 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
5628 inode->i_ino = args->location->objectid; in btrfs_init_locked_inode()
5638 return args->location->objectid == BTRFS_I(inode)->location.objectid && in btrfs_find_actor()
5648 unsigned long hashval = btrfs_inode_hash(location->objectid, root); in btrfs_iget_locked()
5899 key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_real_readdir()
5921 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
5951 put_unaligned(location.objectid, &entry->ino); in btrfs_real_readdir()
6073 key.objectid = btrfs_ino(inode); in btrfs_set_inode_index_count()
6105 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
6186 u64 ref_objectid, u64 objectid, in btrfs_new_inode() argument
6222 inode->i_ino = objectid; in btrfs_new_inode()
6255 key[0].objectid = objectid; in btrfs_new_inode()
6268 key[1].objectid = objectid; in btrfs_new_inode()
6276 location->objectid = objectid; in btrfs_new_inode()
6338 btrfs_ino(BTRFS_I(inode)), root->root_key.objectid, ret); in btrfs_new_inode()
6375 key.objectid = ino; in btrfs_add_link()
6381 ret = btrfs_add_root_ref(trans, key.objectid, in btrfs_add_link()
6382 root->root_key.objectid, parent_ino, in btrfs_add_link()
6417 err = btrfs_del_root_ref(trans, key.objectid, in btrfs_add_link()
6418 root->root_key.objectid, parent_ino, in btrfs_add_link()
6451 u64 objectid; in btrfs_mknod() local
6463 err = btrfs_find_free_ino(root, &objectid); in btrfs_mknod()
6468 dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid, in btrfs_mknod()
6515 u64 objectid; in btrfs_create() local
6527 err = btrfs_find_free_ino(root, &objectid); in btrfs_create()
6532 dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid, in btrfs_create()
6587 if (root->objectid != BTRFS_I(inode)->root->objectid) in btrfs_link()
6667 u64 objectid = 0; in btrfs_mkdir() local
6679 err = btrfs_find_free_ino(root, &objectid); in btrfs_mkdir()
6684 dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid, in btrfs_mkdir()
6789 u64 objectid = btrfs_ino(inode); in btrfs_get_extent() local
6839 ret = btrfs_lookup_file_extent(NULL, root, path, objectid, start, 0); in btrfs_get_extent()
6857 if (found_key.objectid != objectid || in btrfs_get_extent()
6903 if (found_key.objectid != objectid || in btrfs_get_extent()
7180 ins.objectid, ins.offset, ins.offset, in btrfs_new_extent_direct()
7182 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in btrfs_new_extent_direct()
7184 btrfs_free_reserved_extent(fs_info, ins.objectid, in btrfs_new_extent_direct()
7235 if (key.objectid != btrfs_ino(BTRFS_I(inode)) || in can_nocow_extent()
9135 new_root->root_key.objectid, err); in btrfs_create_subvol_root()
9483 root_objectid = BTRFS_I(old_inode)->root->root_key.objectid; in btrfs_rename_exchange()
9502 root_objectid = BTRFS_I(new_inode)->root->root_key.objectid; in btrfs_rename_exchange()
9633 u64 objectid; in btrfs_whiteout_for_rename() local
9636 ret = btrfs_find_free_ino(root, &objectid); in btrfs_whiteout_for_rename()
9644 objectid, in btrfs_whiteout_for_rename()
9797 root_objectid = BTRFS_I(old_inode)->root->root_key.objectid; in btrfs_rename()
9819 root_objectid = BTRFS_I(new_inode)->location.objectid; in btrfs_rename()
10110 u64 objectid; in btrfs_symlink() local
10133 err = btrfs_find_free_ino(root, &objectid); in btrfs_symlink()
10139 objectid, S_IFLNK|S_IRWXUGO, &index); in btrfs_symlink()
10166 key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_symlink()
10266 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in __btrfs_prealloc_file_range()
10270 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
10275 btrfs_free_reserved_extent(fs_info, ins.objectid, in __btrfs_prealloc_file_range()
10296 em->block_start = ins.objectid; in __btrfs_prealloc_file_range()
10318 *alloc_hint = ins.objectid + ins.offset; in __btrfs_prealloc_file_range()
10396 u64 objectid; in btrfs_tmpfile() local
10407 ret = btrfs_find_free_ino(root, &objectid); in btrfs_tmpfile()
10412 btrfs_ino(BTRFS_I(dir)), objectid, mode, &index); in btrfs_tmpfile()