Lines Matching refs:root_item
1107 root_used = btrfs_root_used(&extent_root->root_item); in free_extents()
1108 btrfs_set_root_used(&extent_root->root_item, in free_extents()
1443 last_snapshot = btrfs_root_last_snapshot(&root->root_item); in btrfs_cross_ref_exist()
2622 used = btrfs_root_used(&extent_root->root_item); in finish_current_insert()
2623 btrfs_set_root_used(&extent_root->root_item, in finish_current_insert()
2834 root_used = btrfs_root_used(&root->root_item); in __free_extent()
2835 btrfs_set_root_used(&root->root_item, in __free_extent()
3502 root_used = btrfs_root_used(&root->root_item); in __btrfs_alloc_reserved_extent()
3503 btrfs_set_root_used(&root->root_item, root_used + num_bytes); in __btrfs_alloc_reserved_extent()
4283 struct btrfs_root_item *root_item = &root->root_item; in walk_up_tree() local
4305 memcpy(&root_item->drop_progress, in walk_up_tree()
4307 root_item->drop_level = i; in walk_up_tree()
4357 struct btrfs_root_item *root_item = &root->root_item; in btrfs_drop_snapshot() local
4365 if (btrfs_disk_key_objectid(&root_item->drop_progress) == 0) { in btrfs_drop_snapshot()
4374 btrfs_disk_key_to_cpu(&key, &root_item->drop_progress); in btrfs_drop_snapshot()
4375 level = root_item->drop_level; in btrfs_drop_snapshot()
4384 WARN_ON(memcmp(&found_key, &root_item->drop_progress, in btrfs_drop_snapshot()
5486 btrfs_set_root_bytenr(&reloc_root->root_item, in btrfs_free_reloc_root()
5488 btrfs_set_root_level(&root->root_item, in btrfs_free_reloc_root()
5490 memset(&reloc_root->root_item.drop_progress, 0, in btrfs_free_reloc_root()
5492 reloc_root->root_item.drop_level = 0; in btrfs_free_reloc_root()
5496 &reloc_root->root_item); in btrfs_free_reloc_root()
5600 struct btrfs_root_item *root_item; in init_reloc_tree() local
5608 root_item = kmalloc(sizeof(*root_item), GFP_NOFS); in init_reloc_tree()
5609 BUG_ON(!root_item); in init_reloc_tree()
5619 memcpy(root_item, &root->root_item, sizeof(root_item)); in init_reloc_tree()
5620 btrfs_set_root_refs(root_item, 0); in init_reloc_tree()
5621 btrfs_set_root_bytenr(root_item, eb->start); in init_reloc_tree()
5622 btrfs_set_root_level(root_item, btrfs_header_level(eb)); in init_reloc_tree()
5623 btrfs_set_root_generation(root_item, trans->transid); in init_reloc_tree()
5629 &root_key, root_item); in init_reloc_tree()
5631 kfree(root_item); in init_reloc_tree()