Lines Matching defs:root_item

637 	struct btrfs_root_item AUTO_KFREE(root_item);
641 root_item = kmalloc_obj(*root_item, GFP_NOFS);
642 if (!root_item)
660 if (unlikely(btrfs_disk_key_objectid(&root->root_item.drop_progress))) {
663 btrfs_disk_key_to_cpu(&cpu_key, &root->root_item.drop_progress);
685 btrfs_set_root_last_snapshot(&root->root_item, commit_root_gen);
705 memcpy(root_item, &root->root_item, sizeof(*root_item));
706 btrfs_set_root_bytenr(root_item, eb->start);
707 btrfs_set_root_level(root_item, btrfs_header_level(eb));
708 btrfs_set_root_generation(root_item, trans->transid);
711 btrfs_set_root_refs(root_item, 0);
712 memset(&root_item->drop_progress, 0,
714 btrfs_set_root_drop_level(root_item, 0);
721 &root_key, root_item);
822 struct btrfs_root_item *root_item;
830 root_item = &reloc_root->root_item;
841 if (rc && rc->merge_reloc_tree && btrfs_root_refs(root_item) == 0) {
853 btrfs_set_root_node(root_item, reloc_root->node);
859 &reloc_root->root_key, root_item);
1103 last_snapshot = btrfs_root_last_snapshot(&src->root_item);
1327 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
1365 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
1506 reloc_root_item = &reloc_root->root_item;
1583 struct btrfs_root_item *root_item;
1599 root_item = &reloc_root->root_item;
1601 if (btrfs_disk_key_objectid(&root_item->drop_progress) == 0) {
1602 level = btrfs_root_level(root_item);
1607 btrfs_disk_key_to_cpu(&key, &root_item->drop_progress);
1609 level = btrfs_root_drop_level(root_item);
1634 reserve_level = max_t(int, 1, btrfs_root_level(root_item));
1698 btrfs_node_key(path->nodes[level], &root_item->drop_progress,
1700 btrfs_set_root_drop_level(root_item, level);
1812 &root->reloc_root->root_item),
1817 &reloc_root->root_item));
1826 &reloc_root->root_item));
1841 btrfs_set_root_refs(&reloc_root->root_item, 1);
1896 if (btrfs_root_refs(&reloc_root->root_item) > 0) {
5515 memset(&root->root_item.drop_progress, 0,
5516 sizeof(root->root_item.drop_progress));
5517 btrfs_set_root_drop_level(&root->root_item, 0);
5518 btrfs_set_root_refs(&root->root_item, 0);
5520 &root->root_key, &root->root_item);
5584 if (btrfs_root_refs(&reloc_root->root_item) > 0) {
5641 if (btrfs_root_refs(&reloc_root->root_item) == 0) {
5782 btrfs_root_last_snapshot(&root->root_item))
5846 BUG_ON(btrfs_root_refs(&root->root_item) == 0);