Lines Matching refs:root_item
1032 old_root_used = btrfs_root_used(&root->root_item); in update_cowonly_root()
1035 old_root_bytenr = btrfs_root_bytenr(&root->root_item); in update_cowonly_root()
1037 old_root_used == btrfs_root_used(&root->root_item)) in update_cowonly_root()
1040 btrfs_set_root_node(&root->root_item, root->node); in update_cowonly_root()
1043 &root->root_item); in update_cowonly_root()
1047 old_root_used = btrfs_root_used(&root->root_item); in update_cowonly_root()
1191 btrfs_set_root_node(&root->root_item, in commit_fs_roots()
1197 &root->root_item); in commit_fs_roots()
1351 btrfs_set_root_last_snapshot(&root->root_item, trans->transid); in create_pending_snapshot()
1352 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()
1366 memcpy(new_root_item->parent_uuid, root->root_item.uuid, in create_pending_snapshot()
1533 struct btrfs_root_item *root_item; in update_super_roots() local
1538 root_item = &root->fs_info->chunk_root->root_item; in update_super_roots()
1539 super->chunk_root = root_item->bytenr; in update_super_roots()
1540 super->chunk_root_generation = root_item->generation; in update_super_roots()
1541 super->chunk_root_level = root_item->level; in update_super_roots()
1543 root_item = &root->fs_info->tree_root->root_item; in update_super_roots()
1544 super->root = root_item->bytenr; in update_super_roots()
1545 super->generation = root_item->generation; in update_super_roots()
1546 super->root_level = root_item->level; in update_super_roots()
1548 super->cache_generation = root_item->generation; in update_super_roots()
1550 super->uuid_tree_generation = root_item->generation; in update_super_roots()
2032 btrfs_set_root_node(&root->fs_info->tree_root->root_item, in btrfs_commit_transaction()
2037 btrfs_set_root_node(&root->fs_info->chunk_root->root_item, in btrfs_commit_transaction()