| /linux/fs/btrfs/ |
| H A D | export.c | 40 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 79 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument 86 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry() 93 inode = btrfs_iget(objectid, root); in btrfs_get_dentry() 110 u64 objectid, root_objectid; in btrfs_fh_to_parent() local 124 objectid = fid->parent_objectid; in btrfs_fh_to_parent() 127 return btrfs_get_dentry(sb, objectid, root_objectid, generation); in btrfs_fh_to_parent() 134 u64 objectid, root_objectid; in btrfs_fh_to_dentry() local 145 objectid = fid->objectid; in btrfs_fh_to_dentry() 149 return btrfs_get_dentry(sb, objectid, root_objectid, generation); in btrfs_fh_to_dentry() [all …]
|
| H A D | free-space-tree.c | 27 .objectid = BTRFS_FREE_SPACE_TREE_OBJECTID, in btrfs_free_space_root() 78 key.objectid = block_group->start; in add_new_free_space_info() 105 key.objectid = block_group->start; in btrfs_search_free_space_info() 223 key.objectid = end - 1; in btrfs_convert_free_space_to_bitmaps() 241 ASSERT(found_key.objectid == block_group->start); in btrfs_convert_free_space_to_bitmaps() 248 ASSERT(found_key.objectid >= start); in btrfs_convert_free_space_to_bitmaps() 249 ASSERT(found_key.objectid < end); in btrfs_convert_free_space_to_bitmaps() 250 ASSERT(found_key.objectid + found_key.offset <= end); in btrfs_convert_free_space_to_bitmaps() 252 first = div_u64(found_key.objectid - start, in btrfs_convert_free_space_to_bitmaps() 254 last = div_u64(found_key.objectid + found_key.offset - start, in btrfs_convert_free_space_to_bitmaps() [all …]
|
| H A D | tree-checker.c | 101 key.objectid, key.offset, &vaf); in file_extent_err() 162 key.objectid, &vaf); in dir_item_err() 198 if (key->objectid == prev_key->objectid) in check_prev_ino() 204 prev_key->objectid, key->objectid); in check_prev_ino() 328 prev_key->objectid == key->objectid && in check_extent_data_item() 372 if (unlikely(key->objectid != BTRFS_EXTENT_CSUM_OBJECTID)) { in check_csum_item() 375 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item() 422 if (unlikely(key->objectid != 0 || key->type != 0 || in check_inode_key() 428 if (unlikely((key->objectid < BTRFS_FIRST_FREE_OBJECTID || in check_inode_key() 429 key->objectid > BTRFS_LAST_FREE_OBJECTID) && in check_inode_key() [all …]
|
| H A D | tree-log.c | 232 static int link_to_fixup_dir(struct walk_control *wc, u64 objectid); 260 static struct btrfs_inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging() argument 276 inode = btrfs_iget(objectid, root); in btrfs_iget_logging() 753 wc->log_key.objectid, wc->log_key.offset); in replay_one_extent() 757 inode = btrfs_iget_logging(wc->log_key.objectid, root); in replay_one_extent() 762 wc->log_key.objectid, btrfs_root_id(root)); in replay_one_extent() 805 wc->log_key.objectid, start, extent_end, in replay_one_extent() 853 ins.objectid = btrfs_file_extent_disk_bytenr(wc->log_leaf, item); in replay_one_extent() 865 ret = btrfs_qgroup_trace_extent(trans, ins.objectid, ins.offset); in replay_one_extent() 869 ins.objectid, ins.offset, in replay_one_extent() [all …]
|
| H A D | uuid-tree.c | 21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key() 124 ret, key.objectid, key.offset, type); in btrfs_uuid_tree_add() 313 key.objectid = 0; in btrfs_uuid_tree_iterate() 350 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate() 414 key.objectid = 0; in btrfs_uuid_scan_kthread() 432 (key.objectid < BTRFS_FIRST_FREE_OBJECTID && in btrfs_uuid_scan_kthread() 433 key.objectid != BTRFS_FS_TREE_OBJECTID) || in btrfs_uuid_scan_kthread() 434 key.objectid > BTRFS_LAST_FREE_OBJECTID) in btrfs_uuid_scan_kthread() 473 key.objectid); in btrfs_uuid_scan_kthread() 485 key.objectid); in btrfs_uuid_scan_kthread() [all …]
|
| H A D | relocation.c | 584 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument 597 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 599 root_key.offset = objectid; in create_reloc_root() 601 if (btrfs_root_id(root) == objectid) { in create_reloc_root() 618 objectid, BTRFS_KEY_FMT_VALUE(&cpu_key)); in create_reloc_root() 662 if (btrfs_root_id(root) == objectid) { in create_reloc_root() 909 inode = btrfs_find_first_inode(root, key.objectid); in replace_file_extents() 911 } else if (inode && btrfs_ino(inode) < key.objectid) { in replace_file_extents() 913 inode = btrfs_find_first_inode(root, key.objectid); in replace_file_extents() 915 if (inode && btrfs_ino(inode) == key.objectid) { in replace_file_extents() [all …]
|
| H A D | dir-item.c | 58 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument 73 key.objectid = objectid; in btrfs_insert_xattr_item() 123 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item() 218 key.objectid = dir; in btrfs_lookup_dir_item() 245 key.objectid = dir_ino; in btrfs_check_dir_item_collision() 307 key.objectid = dir; in btrfs_lookup_dir_index_item() 327 key.objectid = dirid; in btrfs_search_dir_index_item() 332 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item() 355 key.objectid = dir; in btrfs_lookup_xattr()
|
| H A D | disk-io.h | 70 u64 objectid, bool check_ref); 72 u64 objectid, dev_t *anon_dev); 75 u64 objectid); 125 u64 objectid); 127 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid);
|
| H A D | raid-stripe-tree.c | 27 .objectid = oldkey->objectid + frontpad, in btrfs_partially_delete_raid_extent() 96 key.objectid = start; in btrfs_delete_raid_extent() 110 found_start = key.objectid; in btrfs_delete_raid_extent() 140 found_start = key.objectid; in btrfs_delete_raid_extent() 172 .objectid = end, in btrfs_delete_raid_extent() 320 stripe_key.objectid = bioc->logical; in btrfs_insert_one_raid_extent() 382 stripe_key.objectid = logical; in btrfs_get_raid_extent_offset() 408 found_logical = found_key.objectid; in btrfs_get_raid_extent_offset()
|
| H A D | file-item.c | 161 u64 objectid, u64 pos, u64 num_bytes) in btrfs_insert_hole_extent() argument 173 file_key.objectid = objectid; in btrfs_insert_hole_extent() 214 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum() 254 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument 261 file_key.objectid = objectid; in btrfs_lookup_file_extent() 522 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_list() 548 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_list() 570 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_list() 671 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_bitmap() 678 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_bitmap() [all …]
|
| H A D | root-tree.c | 102 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 225 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots() 250 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots() 293 if (drop_key.objectid != 0 || drop_key.type != 0 || in btrfs_find_orphan_roots() 345 key.objectid = root_id; in btrfs_del_root_ref() 373 key.objectid = ref_id; in btrfs_del_root_ref() 413 key.objectid = root_id; in btrfs_add_root_ref() 434 key.objectid = ref_id; in btrfs_add_root_ref()
|
| H A D | inode-item.c | 89 key.objectid = inode_objectid; in btrfs_lookup_inode_extref() 119 key.objectid = inode_objectid; in btrfs_del_inode_extref() 182 key.objectid = inode_objectid; in btrfs_del_inode_ref() 256 key.objectid = inode_objectid; in btrfs_insert_inode_extref() 307 key.objectid = inode_objectid; in btrfs_insert_inode_ref() 371 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument 375 key.objectid = objectid; in btrfs_insert_empty_inode() 400 if (found_key.objectid == location->objectid && in btrfs_lookup_inode() 482 key.objectid = control->ino; in btrfs_truncate_inode_items() 519 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items()
|
| H A D | disk-io.c | 430 expect_key->objectid, in btrfs_validate_extent_buffer() 432 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer() 604 u64 objectid, gfp_t flags) in btrfs_alloc_root() argument 613 root->root_key.objectid = objectid; in btrfs_alloc_root() 771 .objectid = BTRFS_CSUM_TREE_OBJECTID, in btrfs_csum_root() 782 .objectid = BTRFS_EXTENT_TREE_OBJECTID, in btrfs_extent_root() 791 u64 objectid) in btrfs_create_tree() argument 805 root = btrfs_alloc_root(fs_info, objectid, GFP_KERNEL); in btrfs_create_tree() 810 root->root_key.objectid = objectid; in btrfs_create_tree() 814 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in btrfs_create_tree() [all …]
|
| H A D | btrfs_inode.h | 137 u64 objectid; member 363 static inline unsigned long btrfs_inode_hash(u64 objectid, in btrfs_inode_hash() argument 366 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash() 383 u64 ino = inode->objectid; in btrfs_ino() 402 key->objectid = btrfs_ino(inode); in btrfs_get_inode_key() 410 inode->objectid = ino; in btrfs_set_inode_number()
|
| H A D | print-tree.c | 48 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name() 55 if (root_map[i].id == key->objectid) in btrfs_root_name() 59 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name() 424 if (key->type == 0 && key->objectid == BTRFS_FREE_SPACE_OBJECTID) in key_type_string() 464 i, key.objectid, key_buf, key.offset, in btrfs_print_leaf() 545 key.objectid, key.offset); in btrfs_print_leaf() 546 switch (key.objectid) { in btrfs_print_leaf() 556 key.objectid, key.offset); in btrfs_print_leaf() 557 switch (key.objectid) { in btrfs_print_leaf()
|
| H A D | ref-verify.c | 117 const u64 *objectid = key; in root_entry_root_objectid_key_cmp() local 120 if (entry->root_objectid < *objectid) in root_entry_root_objectid_key_cmp() 122 else if (entry->root_objectid > *objectid) in root_entry_root_objectid_key_cmp() 182 static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid) in lookup_root_entry() argument 186 node = rb_find(&objectid, root, root_entry_root_objectid_key_cmp); in lookup_root_entry() 453 ret = add_tree_block(fs_info, offset, 0, key->objectid, in process_extent_item() 457 ret = add_tree_block(fs_info, 0, offset, key->objectid, in process_extent_item() 463 key->objectid, key->offset); in process_extent_item() 469 key->objectid, key->offset); in process_extent_item() 510 *bytenr = key.objectid; in process_leaf() [all …]
|
| H A D | backref.c | 73 ret = ctx->indirect_ref_iterator(key->objectid, offset, in check_extent_in_eb() 86 e->inum = key->objectid; in check_extent_in_eb() 237 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare() 239 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare() 281 newref->key_for_search.objectid == sc->inum) in update_share_count() 520 if (key.objectid != key_for_search->objectid || in add_all_parents() 949 key.objectid = btrfs_delayed_ref_owner(node); in add_delayed_refs() 1098 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_inline_refs() 1103 if (sc && key.objectid != sc->inum && in add_inline_refs() 1112 !ctx->skip_data_ref(root, key.objectid, key.offset, in add_inline_refs() [all …]
|
| H A D | export.h | 15 u64 objectid; member 25 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
|
| H A D | orphan.c | 15 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item() 33 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
|
| H A D | ioctl.c | 521 u64 objectid; in create_subvol() local 528 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 536 if (btrfs_qgroup_level(objectid)) in create_subvol() 570 ret = btrfs_qgroup_inherit(trans, 0, objectid, btrfs_root_id(root), inherit); in create_subvol() 574 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in create_subvol() 615 key.objectid = objectid; in create_subvol() 633 ret2 = btrfs_free_tree_block(trans, objectid, leaf, 0, 1); in create_subvol() 643 new_root = btrfs_get_new_fs_root(fs_info, objectid, &anon_dev); in create_subvol() 661 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol() 1376 test.objectid = sk->min_objectid; in key_in_sk() [all …]
|
| H A D | send.c | 400 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error() 923 key.objectid = ino; in get_inode_info() 1233 key.objectid = ino; in get_inode_path() 1244 if (found_key.objectid != ino || in get_inode_path() 1721 key.objectid = ino; in read_symlink() 1955 *found_inode = key.objectid; in lookup_dir_item_inode() 1978 key.objectid = ino; in get_first_ref() 1988 if (ret || found_key.objectid != ino || in get_first_ref() 2473 key.objectid = btrfs_root_id(send_root); in send_subvol_begin() 2487 key.objectid != btrfs_root_id(send_root)) { in send_subvol_begin() [all …]
|
| H A D | inode.c | 148 key.objectid = inum; in data_reloc_print_warning_inode() 297 ctx.bytenr = found_key.objectid; in print_data_reloc_error() 298 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error() 502 key.objectid = btrfs_ino(inode); in insert_inline_extent() 1193 file_extent.disk_bytenr = ins.objectid; in submit_one_async_extent() 1200 async_extent->cb->bbio.bio.bi_iter.bi_sector = ins.objectid >> SECTOR_SHIFT; in submit_one_async_extent() 1217 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_one_async_extent() 1226 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent() 1234 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_one_async_extent() 1235 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, true); in submit_one_async_extent() [all …]
|
| H A D | qgroup.c | 451 key.objectid = 0; in btrfs_read_qgroup_config() 566 key.objectid = 0; in btrfs_read_qgroup_config() 582 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 593 ret = add_relation_rb(fs_info, list, found_key.objectid, in btrfs_read_qgroup_config() 599 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 705 key.objectid = src; in add_qgroup_relation_item() 724 key.objectid = src; in del_qgroup_relation_item() 755 key.objectid = 0; in add_qgroup_item() 810 key.objectid = 0; in del_qgroup_item() 848 key.objectid = 0; in update_qgroup_limit_item() [all …]
|
| /linux/fs/btrfs/tests/ |
| H A D | extent-buffer-tests.c | 60 key.objectid = 0; in test_btrfs_split_item() 90 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 114 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 145 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 168 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 191 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
|
| H A D | qgroup-tests.c | 31 ins.objectid = bytenr; in insert_normal_tree_ref() 78 key.objectid = bytenr; in add_tree_ref() 100 key.objectid = bytenr; in add_tree_ref() 125 key.objectid = bytenr; in remove_extent_item() 156 key.objectid = bytenr; in remove_extent_ref() 178 key.objectid = bytenr; in remove_extent_ref() 483 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups() 517 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups() 533 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
|