Lines Matching refs:root_item
1205 memset(&root->root_item, 0, sizeof(root->root_item)); in __setup_root()
1287 root->root_item.flags = 0; in btrfs_create_tree()
1288 root->root_item.byte_limit = 0; in btrfs_create_tree()
1289 btrfs_set_root_bytenr(&root->root_item, leaf->start); in btrfs_create_tree()
1290 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1291 btrfs_set_root_level(&root->root_item, 0); in btrfs_create_tree()
1292 btrfs_set_root_refs(&root->root_item, 1); in btrfs_create_tree()
1293 btrfs_set_root_used(&root->root_item, leaf->len); in btrfs_create_tree()
1294 btrfs_set_root_last_snapshot(&root->root_item, 0); in btrfs_create_tree()
1295 btrfs_set_root_dirid(&root->root_item, 0); in btrfs_create_tree()
1298 memcpy(root->root_item.uuid, uuid.b, BTRFS_UUID_SIZE); in btrfs_create_tree()
1299 root->root_item.drop_level = 0; in btrfs_create_tree()
1304 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1389 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
1397 btrfs_set_root_node(&log_root->root_item, log_root->node); in btrfs_add_log_tree()
1430 &root->root_item, &root->root_key); in btrfs_read_tree_root()
1437 generation = btrfs_root_generation(&root->root_item); in btrfs_read_tree_root()
1438 level = btrfs_root_level(&root->root_item); in btrfs_read_tree_root()
1440 btrfs_root_bytenr(&root->root_item), in btrfs_read_tree_root()
1473 btrfs_check_and_init_root_item(&root->root_item); in btrfs_read_fs_root()
1508 btrfs_root_refs(&root->root_item) > 0) { in btrfs_init_fs_root()
1596 if (check_ref && btrfs_root_refs(&root->root_item) == 0) in btrfs_get_fs_root()
1605 if (check_ref && btrfs_root_refs(&root->root_item) == 0) { in btrfs_get_fs_root()
2979 btrfs_set_root_node(&chunk_root->root_item, chunk_root->node); in open_ctree()
3018 btrfs_set_root_node(&tree_root->root_item, tree_root->node); in open_ctree()
3020 btrfs_set_root_refs(&tree_root->root_item, 1); in open_ctree()
3856 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_drop_and_free_fs_root()
3913 if (btrfs_root_refs(&gang[i]->root_item) == 0) { in btrfs_cleanup_fs_roots()