Lines Matching refs:objectid
188 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class() argument
197 if (ks->id == objectid) in btrfs_set_buffer_lockdep_class()
361 eb->start, parent_transid, first_key->objectid, in btrfs_verify_level_key()
363 found_key.objectid, found_key.type, in btrfs_verify_level_key()
1140 u64 objectid) in __setup_root() argument
1203 root->root_key.objectid = objectid; in __setup_root()
1217 u64 objectid, gfp_t flags) in btrfs_alloc_root() argument
1221 __setup_root(root, fs_info, objectid); in btrfs_alloc_root()
1246 u64 objectid) in btrfs_create_tree() argument
1261 root = btrfs_alloc_root(fs_info, objectid, GFP_KERNEL); in btrfs_create_tree()
1266 root->root_key.objectid = objectid; in btrfs_create_tree()
1270 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in btrfs_create_tree()
1293 if (is_fstree(objectid)) in btrfs_create_tree()
1301 key.objectid = objectid; in btrfs_create_tree()
1328 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1405 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1435 root = btrfs_alloc_root(fs_info, key->objectid, GFP_NOFS); in read_tree_root_path()
1451 key->objectid, generation, level, NULL); in read_tree_root_path()
1502 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID && in btrfs_init_fs_root()
1512 if (is_fstree(root->root_key.objectid) && in btrfs_init_fs_root()
1555 u64 objectid) in btrfs_get_global_root() argument
1557 if (objectid == BTRFS_ROOT_TREE_OBJECTID) in btrfs_get_global_root()
1559 if (objectid == BTRFS_EXTENT_TREE_OBJECTID) in btrfs_get_global_root()
1561 if (objectid == BTRFS_CHUNK_TREE_OBJECTID) in btrfs_get_global_root()
1563 if (objectid == BTRFS_DEV_TREE_OBJECTID) in btrfs_get_global_root()
1565 if (objectid == BTRFS_CSUM_TREE_OBJECTID) in btrfs_get_global_root()
1567 if (objectid == BTRFS_QUOTA_TREE_OBJECTID) in btrfs_get_global_root()
1570 if (objectid == BTRFS_UUID_TREE_OBJECTID) in btrfs_get_global_root()
1573 if (objectid == BTRFS_FREE_SPACE_TREE_OBJECTID) in btrfs_get_global_root()
1590 (unsigned long)root->root_key.objectid, in btrfs_insert_fs_root()
1671 u64 objectid, dev_t anon_dev, in btrfs_get_root_ref() argument
1679 root = btrfs_get_global_root(fs_info, objectid); in btrfs_get_root_ref()
1683 root = btrfs_lookup_fs_root(fs_info, objectid); in btrfs_get_root_ref()
1694 key.objectid = objectid; in btrfs_get_root_ref()
1715 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_get_root_ref()
1717 key.offset = objectid; in btrfs_get_root_ref()
1755 u64 objectid, bool check_ref) in btrfs_get_fs_root() argument
1757 return btrfs_get_root_ref(fs_info, objectid, 0, check_ref); in btrfs_get_fs_root()
1769 u64 objectid, dev_t anon_dev) in btrfs_get_new_fs_root() argument
1771 return btrfs_get_root_ref(fs_info, objectid, anon_dev, true); in btrfs_get_new_fs_root()
1790 u64 objectid) in btrfs_get_fs_root_commit_root() argument
1803 root = btrfs_get_global_root(fs_info, objectid); in btrfs_get_fs_root_commit_root()
1807 root = btrfs_lookup_fs_root(fs_info, objectid); in btrfs_get_fs_root_commit_root()
1811 key.objectid = objectid; in btrfs_get_fs_root_commit_root()
2447 location.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_read_roots()
2462 location.objectid = BTRFS_DEV_TREE_OBJECTID; in btrfs_read_roots()
2478 location.objectid = BTRFS_CSUM_TREE_OBJECTID; in btrfs_read_roots()
2507 location.objectid = BTRFS_QUOTA_TREE_OBJECTID; in btrfs_read_roots()
2515 location.objectid = BTRFS_UUID_TREE_OBJECTID; in btrfs_read_roots()
2529 location.objectid = BTRFS_FREE_SPACE_TREE_OBJECTID; in btrfs_read_roots()
2545 location.objectid, ret); in btrfs_read_roots()
4249 (unsigned long)root->root_key.objectid); in btrfs_drop_and_free_fs_root()
4283 root_objectid = gang[ret - 1]->root_key.objectid + 1; in btrfs_cleanup_fs_roots()
4299 root_objectid = gang[i]->root_key.objectid; in btrfs_cleanup_fs_roots()
4597 root_objectid = gang[i]->root_key.objectid; in btrfs_drop_all_logs()
5019 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_init_root_free_objectid()
5030 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
5041 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_get_free_objectid() argument
5049 root->root_key.objectid); in btrfs_get_free_objectid()
5054 *objectid = root->free_objectid++; in btrfs_get_free_objectid()