Lines Matching refs:objectid
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
852 root = btrfs_alloc_root(fs_info, objectid, GFP_KERNEL); in btrfs_create_tree()
857 root->root_key.objectid = objectid; in btrfs_create_tree()
861 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in btrfs_create_tree()
884 if (is_fstree(objectid)) in btrfs_create_tree()
892 key.objectid = objectid; in btrfs_create_tree()
916 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
993 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1024 root = btrfs_alloc_root(fs_info, key->objectid, GFP_NOFS); in read_tree_root_path()
1040 check.owner_root = key->objectid; in read_tree_root_path()
1058 root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID && in read_tree_root_path()
1059 root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID && in read_tree_root_path()
1060 root->root_key.objectid != btrfs_header_owner(root->node)) { in read_tree_root_path()
1063 root->root_key.objectid, root->node->start, in read_tree_root_path()
1065 root->root_key.objectid); in read_tree_root_path()
1102 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID && in btrfs_init_fs_root()
1104 is_fstree(root->root_key.objectid)) { in btrfs_init_fs_root()
1113 if (is_fstree(root->root_key.objectid) && in btrfs_init_fs_root()
1155 u64 objectid) in btrfs_get_global_root() argument
1158 .objectid = objectid, in btrfs_get_global_root()
1163 switch (objectid) { in btrfs_get_global_root()
1198 (unsigned long)root->root_key.objectid, in btrfs_insert_fs_root()
1290 u64 objectid, dev_t *anon_dev, in btrfs_get_root_ref() argument
1298 root = btrfs_get_global_root(fs_info, objectid); in btrfs_get_root_ref()
1309 if (!is_fstree(objectid) && objectid != BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_get_root_ref()
1312 root = btrfs_lookup_fs_root(fs_info, objectid); in btrfs_get_root_ref()
1332 key.objectid = objectid; in btrfs_get_root_ref()
1353 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_get_root_ref()
1355 key.offset = objectid; in btrfs_get_root_ref()
1394 u64 objectid, bool check_ref) in btrfs_get_fs_root() argument
1396 return btrfs_get_root_ref(fs_info, objectid, NULL, check_ref); in btrfs_get_fs_root()
1408 u64 objectid, dev_t *anon_dev) in btrfs_get_new_fs_root() argument
1410 return btrfs_get_root_ref(fs_info, objectid, anon_dev, true); in btrfs_get_new_fs_root()
1429 u64 objectid) in btrfs_get_fs_root_commit_root() argument
1442 root = btrfs_get_global_root(fs_info, objectid); in btrfs_get_fs_root_commit_root()
1446 root = btrfs_lookup_fs_root(fs_info, objectid); in btrfs_get_fs_root_commit_root()
1450 key.objectid = objectid; in btrfs_get_fs_root_commit_root()
1916 BTRFS_I(inode)->location.objectid = BTRFS_BTREE_INODE_OBJECTID; in btrfs_init_btree_inode()
2100 struct btrfs_path *path, u64 objectid, in load_global_roots_objectid() argument
2108 .objectid = objectid, in load_global_roots_objectid()
2115 if (objectid == BTRFS_CSUM_TREE_OBJECTID && in load_global_roots_objectid()
2137 if (key.objectid != objectid) in load_global_roots_objectid()
2145 if (objectid == BTRFS_EXTENT_TREE_OBJECTID) in load_global_roots_objectid()
2165 if (objectid == BTRFS_EXTENT_TREE_OBJECTID) in load_global_roots_objectid()
2169 if (objectid == BTRFS_CSUM_TREE_OBJECTID) in load_global_roots_objectid()
2225 location.objectid = BTRFS_BLOCK_GROUP_TREE_OBJECTID; in btrfs_read_roots()
2238 location.objectid = BTRFS_DEV_TREE_OBJECTID; in btrfs_read_roots()
2270 location.objectid = BTRFS_QUOTA_TREE_OBJECTID; in btrfs_read_roots()
2278 location.objectid = BTRFS_UUID_TREE_OBJECTID; in btrfs_read_roots()
2294 location.objectid, ret); in btrfs_read_roots()
2545 .owner_root = root->root_key.objectid in load_super_root()
2893 root_objectid = gang[ret - 1]->root_key.objectid + 1; in btrfs_cleanup_fs_roots()
2909 root_objectid = gang[i]->root_key.objectid; in btrfs_cleanup_fs_roots()
4180 (unsigned long)root->root_key.objectid); in btrfs_drop_and_free_fs_root()
4559 root_objectid = gang[i]->root_key.objectid; in btrfs_drop_all_logs()
4881 (unsigned long)root->root_key.objectid, in btrfs_free_all_qgroup_pertrans()
4988 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_init_root_free_objectid()
4999 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
5010 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_get_free_objectid() argument
5018 root->root_key.objectid); in btrfs_get_free_objectid()
5023 *objectid = root->free_objectid++; in btrfs_get_free_objectid()