Lines Matching refs:root_item

1236 	old_root_used = btrfs_root_used(&root->root_item);  in update_cowonly_root()
1239 old_root_bytenr = btrfs_root_bytenr(&root->root_item); in update_cowonly_root()
1241 old_root_used == btrfs_root_used(&root->root_item)) in update_cowonly_root()
1244 btrfs_set_root_node(&root->root_item, root->node); in update_cowonly_root()
1247 &root->root_item); in update_cowonly_root()
1251 old_root_used = btrfs_root_used(&root->root_item); in update_cowonly_root()
1450 btrfs_set_root_node(&root->root_item, in commit_fs_roots()
1456 &root->root_item); in commit_fs_roots()
1640 ASSERT(pending->root_item); in create_pending_snapshot()
1641 new_root_item = pending->root_item; in create_pending_snapshot()
1730 btrfs_set_root_last_snapshot(&root->root_item, trans->transid); in create_pending_snapshot()
1731 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()
1744 memcpy(new_root_item->parent_uuid, root->root_item.uuid, in create_pending_snapshot()
1876 pending->root_item = NULL; in create_pending_snapshot()
1903 struct btrfs_root_item *root_item; in update_super_roots() local
1908 root_item = &fs_info->chunk_root->root_item; in update_super_roots()
1909 super->chunk_root = root_item->bytenr; in update_super_roots()
1910 super->chunk_root_generation = root_item->generation; in update_super_roots()
1911 super->chunk_root_level = root_item->level; in update_super_roots()
1913 root_item = &fs_info->tree_root->root_item; in update_super_roots()
1914 super->root = root_item->bytenr; in update_super_roots()
1915 super->generation = root_item->generation; in update_super_roots()
1916 super->root_level = root_item->level; in update_super_roots()
1918 super->cache_generation = root_item->generation; in update_super_roots()
1922 super->uuid_tree_generation = root_item->generation; in update_super_roots()
2413 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
2418 btrfs_set_root_node(&fs_info->chunk_root->root_item, in btrfs_commit_transaction()
2424 btrfs_set_root_node(&fs_info->block_group_root->root_item, in btrfs_commit_transaction()