/fs/btrfs/ |
D | export.c | 37 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 38 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh() 44 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh() 46 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh() 74 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument 81 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry() 88 inode = btrfs_iget(sb, objectid, root); in btrfs_get_dentry() 105 u64 objectid, root_objectid; in btrfs_fh_to_parent() local 119 objectid = fid->parent_objectid; in btrfs_fh_to_parent() 122 return btrfs_get_dentry(sb, objectid, root_objectid, generation); in btrfs_fh_to_parent() [all …]
|
D | free-space-tree.c | 28 .objectid = BTRFS_FREE_SPACE_TREE_OBJECTID, in btrfs_free_space_root() 79 key.objectid = block_group->start; in add_new_free_space_info() 111 key.objectid = block_group->start; in search_free_space_info() 233 key.objectid = end - 1; in convert_free_space_to_bitmaps() 249 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps() 256 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 257 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 258 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() 260 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps() 262 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps() [all …]
|
D | tree-checker.c | 99 key.objectid, key.offset, &vaf); in file_extent_err() 159 key.objectid, &vaf); in dir_item_err() 194 if (key->objectid == prev_key->objectid) in check_prev_ino() 200 prev_key->objectid, key->objectid); in check_prev_ino() 324 prev_key->objectid == key->objectid && in check_extent_data_item() 350 if (unlikely(key->objectid != BTRFS_EXTENT_CSUM_OBJECTID)) { in check_csum_item() 353 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item() 400 if (unlikely(key->objectid != 0 || key->type != 0 || in check_inode_key() 406 if (unlikely((key->objectid < BTRFS_FIRST_FREE_OBJECTID || in check_inode_key() 407 key->objectid > BTRFS_LAST_FREE_OBJECTID) && in check_inode_key() [all …]
|
D | tree-log.c | 112 struct btrfs_path *path, u64 objectid); 143 static struct inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging() argument 156 inode = btrfs_iget(root->fs_info->sb, objectid, root); in btrfs_iget_logging() 416 ASSERT(root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in overwrite_item() 621 u64 objectid) in read_one_inode() argument 625 inode = btrfs_iget_logging(objectid, root); in read_one_inode() 684 inode = read_one_inode(root, key->objectid); in replay_one_extent() 753 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent() 772 if (ins.objectid > 0) { in replay_one_extent() 782 ret = btrfs_lookup_data_extent(fs_info, ins.objectid, in replay_one_extent() [all …]
|
D | relocation.c | 743 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument 757 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 759 root_key.offset = objectid; in create_reloc_root() 761 if (root->root_key.objectid == objectid) { in create_reloc_root() 805 if (root->root_key.objectid == objectid) { in create_reloc_root() 884 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root() 892 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root() 962 static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) in find_next_inode() argument 977 if (objectid < btrfs_ino(entry)) in find_next_inode() 979 else if (objectid > btrfs_ino(entry)) in find_next_inode() [all …]
|
D | disk-io.c | 415 expect_key->objectid, in btrfs_validate_extent_buffer() 417 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer() 622 u64 objectid) in __setup_root() argument 630 root->root_key.objectid = objectid; in __setup_root() 700 u64 objectid, gfp_t flags) in btrfs_alloc_root() argument 704 __setup_root(root, fs_info, objectid); in btrfs_alloc_root() 757 root->root_key.objectid, root->root_key.offset); in btrfs_global_root_insert() 810 .objectid = BTRFS_CSUM_TREE_OBJECTID, in btrfs_csum_root() 821 .objectid = BTRFS_EXTENT_TREE_OBJECTID, in btrfs_extent_root() 837 u64 objectid) in btrfs_create_tree() argument [all …]
|
D | file-item.c | 163 u64 objectid, u64 pos, u64 num_bytes) in btrfs_insert_hole_extent() argument 174 file_key.objectid = objectid; in btrfs_insert_hole_extent() 219 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum() 259 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument 266 file_key.objectid = objectid; in btrfs_lookup_file_extent() 437 if (inode->root->root_key.objectid == in btrfs_lookup_bio_sums() 484 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_list() 510 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_list() 532 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_list() 626 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_bitmap() [all …]
|
D | print-tree.c | 37 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name() 44 if (root_map[i].id == key->objectid) in btrfs_root_name() 48 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name() 235 i, key.objectid, type, key.offset, in btrfs_print_leaf() 249 found_key.objectid, in btrfs_print_leaf() 324 key.objectid, key.offset); in btrfs_print_leaf() 325 switch (key.objectid) { in btrfs_print_leaf() 335 key.objectid, key.offset); in btrfs_print_leaf() 336 switch (key.objectid) { in btrfs_print_leaf() 381 i, key.objectid, key.type, key.offset, in btrfs_print_tree()
|
D | root-tree.c | 95 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 144 key->objectid, key->type, key->offset, in btrfs_update_root() 145 root->root_key.objectid); in btrfs_update_root() 224 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots() 250 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots() 295 if (drop_key.objectid != 0 || drop_key.type != 0 || in btrfs_find_orphan_roots() 350 key.objectid = root_id; in btrfs_del_root_ref() 380 key.objectid = ref_id; in btrfs_del_root_ref() 422 key.objectid = root_id; in btrfs_add_root_ref() 445 key.objectid = ref_id; in btrfs_add_root_ref()
|
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() 124 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item() 221 key.objectid = dir; in btrfs_lookup_dir_item() 248 key.objectid = dir; in btrfs_check_dir_item_collision() 316 key.objectid = dir; in btrfs_lookup_dir_index_item() 336 key.objectid = dirid; in btrfs_search_dir_index_item() 341 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item() 365 key.objectid = dir; in btrfs_lookup_xattr()
|
D | extent-tree.c | 84 key.objectid = start; in btrfs_lookup_data_extent() 136 key.objectid = bytenr; in btrfs_lookup_extent_info() 153 if (key.objectid == bytenr && in btrfs_lookup_extent_info() 445 key.objectid = bytenr; in lookup_extent_data_ref() 484 if (key.objectid != bytenr || in lookup_extent_data_ref() 519 key.objectid = bytenr; in insert_extent_data_ref() 611 key.objectid, key.type, key.offset); in remove_extent_data_ref() 681 key.objectid = bytenr; in lookup_tree_block_ref() 705 key.objectid = bytenr; in insert_tree_block_ref() 796 key.objectid = bytenr; in lookup_inline_extent_backref() [all …]
|
D | inode-item.c | 93 key.objectid = inode_objectid; in btrfs_lookup_inode_extref() 123 key.objectid = inode_objectid; in btrfs_del_inode_extref() 194 key.objectid = inode_objectid; in btrfs_del_inode_ref() 268 key.objectid = inode_objectid; in btrfs_insert_inode_extref() 322 key.objectid = inode_objectid; in btrfs_insert_inode_ref() 388 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument 392 key.objectid = objectid; in btrfs_insert_empty_inode() 418 if (found_key.objectid == location->objectid && in btrfs_lookup_inode() 500 key.objectid = control->ino; in btrfs_truncate_inode_items() 537 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items() [all …]
|
D | disk-io.h | 65 u64 objectid, bool check_ref); 67 u64 objectid, dev_t *anon_dev); 70 u64 objectid); 126 u64 objectid); 128 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid);
|
D | ioctl.c | 605 u64 objectid; in create_subvol() local 612 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 620 if (btrfs_qgroup_level(objectid)) { in create_subvol() 661 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol() 665 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in create_subvol() 706 key.objectid = objectid; in create_subvol() 722 btrfs_free_tree_block(trans, objectid, leaf, 0, 1); in create_subvol() 730 new_root = btrfs_get_new_fs_root(fs_info, objectid, &anon_dev); in create_subvol() 748 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol() 1503 root->root_key.objectid); in btrfs_ioctl_subvol_setflags() [all …]
|
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() 240 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare() 242 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare() 267 if (newref->root_id == sc->root->root_key.objectid && in update_share_count() 269 newref->key_for_search.objectid == sc->inum) in update_share_count() 524 if (key.objectid != key_for_search->objectid || in add_all_parents() 675 ref->key_for_search.objectid, ref->key_for_search.type, in resolve_indirect_ref() 775 if (sc && ref->root_id != sc->root->root_key.objectid) { in resolve_indirect_refs() 956 key.objectid = ref->objectid; in add_delayed_refs() [all …]
|
D | inode.c | 159 key.objectid = inum; in data_reloc_print_warning_inode() 249 inode->root->root_key.objectid, btrfs_ino(inode), file_off, in print_data_reloc_error() 259 inode->root->root_key.objectid, in print_data_reloc_error() 305 ctx.bytenr = found_key.objectid; in print_data_reloc_error() 306 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error() 326 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_print_data_csum_error() 331 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) { in btrfs_print_data_csum_error() 334 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 342 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 530 key.objectid = btrfs_ino(inode); in insert_inline_extent() [all …]
|
D | qgroup.c | 389 key.objectid = 0; in btrfs_read_qgroup_config() 486 key.objectid = 0; in btrfs_read_qgroup_config() 500 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 506 ret = add_relation_rb(fs_info, found_key.objectid, in btrfs_read_qgroup_config() 511 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 620 key.objectid = src; in add_qgroup_relation_item() 644 key.objectid = src; in del_qgroup_relation_item() 680 key.objectid = 0; in add_qgroup_item() 742 key.objectid = 0; in del_qgroup_item() 788 key.objectid = 0; in update_qgroup_limit_item() [all …]
|
D | send.c | 395 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error() 396 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error() 398 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error() 938 key.objectid = ino; in get_inode_info() 1081 found_key->objectid, in iterate_inode_ref() 1261 key.objectid = ino; in get_inode_path() 1273 if (found_key.objectid != ino || in get_inode_path() 1320 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1322 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1332 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort() [all …]
|
D | ctree.c | 294 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list() 446 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow() 458 if ((owner == root->root_key.objectid || in update_ref_for_cow() 459 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow() 465 if (root->root_key.objectid == in update_ref_for_cow() 477 if (root->root_key.objectid == in update_ref_for_cow() 492 if (root->root_key.objectid == in update_ref_for_cow() 554 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block() 558 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block() 571 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block() [all …]
|
D | export.h | 11 u64 objectid; member 21 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
|
D | transaction.c | 431 (unsigned long)root->root_key.objectid, in record_root_in_trans() 477 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root() 555 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root() 1187 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents() 1450 (unsigned long)root->root_key.objectid, in commit_fs_roots() 1581 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot() 1648 u64 objectid; in create_pending_snapshot() local 1672 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot() 1680 btrfs_set_skip_qgroup(trans, objectid); in create_pending_snapshot() 1693 key.objectid = objectid; in create_pending_snapshot() [all …]
|
D | ref-verify.c | 190 static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid) in lookup_root_entry() argument 198 if (entry->root_objectid < objectid) in lookup_root_entry() 200 else if (entry->root_objectid > objectid) in lookup_root_entry() 470 ret = add_tree_block(fs_info, offset, 0, key->objectid, in process_extent_item() 474 ret = add_tree_block(fs_info, 0, offset, key->objectid, in process_extent_item() 480 key->objectid, key->offset); in process_extent_item() 486 key->objectid, key->offset); in process_extent_item() 520 *bytenr = key.objectid; in process_leaf() 526 key.objectid, *tree_block_level); in process_leaf() 530 key.objectid, *tree_block_level); in process_leaf()
|
D | orphan.c | 17 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item() 38 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
|
/fs/btrfs/tests/ |
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()
|
D | qgroup-tests.c | 31 ins.objectid = bytenr; in insert_normal_tree_ref() 80 key.objectid = bytenr; in add_tree_ref() 103 key.objectid = bytenr; in add_tree_ref() 129 key.objectid = bytenr; in remove_extent_item() 162 key.objectid = bytenr; in remove_extent_ref() 185 key.objectid = bytenr; in remove_extent_ref() 492 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups() 526 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups() 542 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
|