/fs/btrfs/ |
D | btrfs_inode.h | 248 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash() 379 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error() 382 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 390 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
|
D | relocation.c | 735 struct btrfs_key root_key; in create_reloc_root() local 743 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 744 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root() 745 root_key.offset = objectid; in create_reloc_root() 747 if (root->root_key.objectid == objectid) { in create_reloc_root() 791 if (root->root_key.objectid == objectid) { in create_reloc_root() 802 &root_key, root_item); in create_reloc_root() 808 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root() 870 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root() 878 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root() [all …]
|
D | export.c | 36 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh() 44 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh() 151 key.objectid = root->root_key.objectid; in btrfs_get_parent() 228 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
|
D | extent-tree.c | 2277 if (data_ref->root != root->root_key.objectid || in check_delayed_ref() 2355 root->root_key.objectid || in check_committed_ref() 2386 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist() 2448 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref() 2463 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref() 3331 root->root_key.objectid); in btrfs_free_tree_block() 3333 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block() 3342 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block() 4526 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent() 4530 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, offset); in btrfs_alloc_reserved_file_extent() [all …]
|
D | inode-map.c | 184 root->root_key.objectid); in start_caching() 413 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache() 414 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache() 415 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
|
D | root-tree.c | 66 struct btrfs_key *root_key) in btrfs_find_root() argument 100 if (root_key) in btrfs_find_root() 101 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root() 142 root->root_key.objectid); in btrfs_update_root()
|
D | transaction.c | 166 if (is_fstree(root->root_key.objectid)) in switch_commit_roots() 429 (unsigned long)root->root_key.objectid, in record_root_in_trans() 475 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root() 551 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root() 1130 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents() 1205 &root->root_key, in update_cowonly_root() 1344 (unsigned long)root->root_key.objectid, in commit_fs_roots() 1365 &root->root_key, in commit_fs_roots() 1462 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot() 1680 parent_root->root_key.objectid, in create_pending_snapshot() [all …]
|
D | disk-io.c | 1083 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root() 1086 root->root_key.objectid = objectid; in __setup_root() 1149 root->root_key.objectid = objectid; in btrfs_create_tree() 1150 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree() 1151 root->root_key.offset = 0; in btrfs_create_tree() 1211 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree() 1212 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree() 1213 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree() 1264 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree() 1299 &root->root_item, &root->root_key); in read_tree_root_path() [all …]
|
D | qgroup.c | 1278 ret = btrfs_del_root(trans, "a_root->root_key); in btrfs_quota_disable() 3076 u64 ref_root = root->root_key.objectid; in qgroup_reserve() 3745 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data() 3861 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data() 3896 inode->root->root_key.objectid, in __btrfs_qgroup_release_data() 3989 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta() 4029 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans() 4035 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans() 4045 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta() 4056 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta() [all …]
|
D | inode.c | 1048 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in cow_file_range() 1083 if (root->root_key.objectid == in cow_file_range() 1378 const bool is_reloc_ino = (inode->root->root_key.objectid == in fallback_to_cow() 1734 if (root->root_key.objectid == in run_delalloc_nocow() 2079 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_delalloc_extent() 2212 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_data_bio() 2911 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_verify_data_csum() 3445 root->root_key.objectid, ret); in btrfs_read_locked_inode() 3580 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode() 3800 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol() [all …]
|
D | file-item.c | 338 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums() 578 inode->root->root_key.objectid, in btrfs_csum_one_bio() 711 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums() 1108 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
|
D | ioctl.c | 754 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol() 2060 root->root_key.objectid); in btrfs_ioctl_subvol_setflags() 2073 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags() 2478 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user() 2659 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup() 2757 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info() 2875 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref() 3474 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol() 3504 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol() 4388 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit() [all …]
|
D | ctree.c | 163 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list() 891 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow() 903 if ((owner == root->root_key.objectid || in update_ref_for_cow() 904 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow() 910 if (root->root_key.objectid == in update_ref_for_cow() 922 if (root->root_key.objectid == in update_ref_for_cow() 940 if (root->root_key.objectid == in update_ref_for_cow() 993 root->root_key.objectid, disk_key, level, in alloc_tree_block_no_bg_flush() 1045 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block() 1061 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block() [all …]
|
D | super.c | 1501 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options() 1503 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options() 1571 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol() 2284 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs() 2286 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
|
D | send.c | 310 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error() 312 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error() 1206 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1208 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1218 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort() 1220 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort() 1515 ino, root->root_key.objectid); in read_symlink() 2369 key.objectid = send_root->root_key.objectid; in send_subvol_begin() 2385 key.objectid != send_root->root_key.objectid) { in send_subvol_begin() 5012 sctx->send_root->root_key.objectid); in put_file_data() [all …]
|
D | file.c | 160 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag() 713 update_refs = (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in __btrfs_drop_extents() 846 root->root_key.objectid, in __btrfs_drop_extents() 933 root->root_key.objectid, in __btrfs_drop_extents() 1225 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written() 1251 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset); in btrfs_mark_extent_written() 2587 btrfs_init_data_ref(&ref, root->root_key.objectid, in btrfs_insert_replace_extent()
|
D | props.c | 239 root->root_key.objectid, ret); in inode_prop_iterator()
|
D | reflink.c | 648 root_dst->root_key.objectid, in btrfs_extent_same()
|
D | backref.c | 1574 .root_objectid = root->root_key.objectid, 2162 fs_root->root_key.objectid); 2811 cur->bytenr, level - 1, root->root_key.objectid,
|
D | delayed-inode.c | 1498 name_len, name, delayed_node->root->root_key.objectid, in btrfs_insert_delayed_dir_index() 1574 index, node->root->root_key.objectid, in btrfs_delete_delayed_dir_index()
|
D | tree-log.c | 359 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item() 718 root->root_key.objectid, in replay_one_extent() 729 root->root_key.objectid, in replay_one_extent() 2963 &log->root_key, root_item); in update_log_root() 2966 &log->root_key, root_item); in update_log_root()
|
D | free-space-tree.c | 1254 ret = btrfs_del_root(trans, &free_space_root->root_key); in btrfs_clear_free_space_tree()
|
D | ctree.h | 1060 struct btrfs_key root_key; member 2852 struct btrfs_key *root_key);
|
D | free-space-cache.c | 3955 root->root_key.objectid); in load_free_ino_cache() 3996 root->root_key.objectid, ret); in btrfs_write_out_ino_cache()
|
/fs/btrfs/tests/ |
D | qgroup-tests.c | 505 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups() 521 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
|