Lines Matching refs:root_item

1128 	old_root_used = btrfs_root_used(&root->root_item);  in update_cowonly_root()
1131 old_root_bytenr = btrfs_root_bytenr(&root->root_item); in update_cowonly_root()
1133 old_root_used == btrfs_root_used(&root->root_item)) in update_cowonly_root()
1136 btrfs_set_root_node(&root->root_item, root->node); in update_cowonly_root()
1139 &root->root_item); in update_cowonly_root()
1143 old_root_used = btrfs_root_used(&root->root_item); in update_cowonly_root()
1288 btrfs_set_root_node(&root->root_item, in commit_fs_roots()
1294 &root->root_item); in commit_fs_roots()
1467 ASSERT(pending->root_item); in create_pending_snapshot()
1468 new_root_item = pending->root_item; in create_pending_snapshot()
1542 btrfs_set_root_last_snapshot(&root->root_item, trans->transid); in create_pending_snapshot()
1543 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()
1557 memcpy(new_root_item->parent_uuid, root->root_item.uuid, in create_pending_snapshot()
1699 pending->root_item = NULL; in create_pending_snapshot()
1726 struct btrfs_root_item *root_item; in update_super_roots() local
1731 root_item = &fs_info->chunk_root->root_item; in update_super_roots()
1732 super->chunk_root = root_item->bytenr; in update_super_roots()
1733 super->chunk_root_generation = root_item->generation; in update_super_roots()
1734 super->chunk_root_level = root_item->level; in update_super_roots()
1736 root_item = &fs_info->tree_root->root_item; in update_super_roots()
1737 super->root = root_item->bytenr; in update_super_roots()
1738 super->generation = root_item->generation; in update_super_roots()
1739 super->root_level = root_item->level; in update_super_roots()
1741 super->cache_generation = root_item->generation; in update_super_roots()
1743 super->uuid_tree_generation = root_item->generation; in update_super_roots()
2246 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
2251 btrfs_set_root_node(&fs_info->chunk_root->root_item, in btrfs_commit_transaction()