Lines Matching defs:root_item

748 	struct btrfs_root_item *root_item;
753 root_item = kmalloc(sizeof(*root_item), GFP_NOFS);
754 if (!root_item)
779 btrfs_set_root_last_snapshot(&root->root_item, commit_root_gen);
800 memcpy(root_item, &root->root_item, sizeof(*root_item));
801 btrfs_set_root_bytenr(root_item, eb->start);
802 btrfs_set_root_level(root_item, btrfs_header_level(eb));
803 btrfs_set_root_generation(root_item, trans->transid);
806 btrfs_set_root_refs(root_item, 0);
807 memset(&root_item->drop_progress, 0,
809 btrfs_set_root_drop_level(root_item, 0);
816 &root_key, root_item);
820 kfree(root_item);
831 kfree(root_item);
917 struct btrfs_root_item *root_item;
924 root_item = &reloc_root->root_item;
935 btrfs_root_refs(root_item) == 0) {
947 btrfs_set_root_node(root_item, reloc_root->node);
953 &reloc_root->root_key, root_item);
1235 last_snapshot = btrfs_root_last_snapshot(&src->root_item);
1446 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
1484 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
1624 reloc_root_item = &reloc_root->root_item;
1701 struct btrfs_root_item *root_item;
1717 root_item = &reloc_root->root_item;
1719 if (btrfs_disk_key_objectid(&root_item->drop_progress) == 0) {
1720 level = btrfs_root_level(root_item);
1725 btrfs_disk_key_to_cpu(&key, &root_item->drop_progress);
1727 level = btrfs_root_drop_level(root_item);
1752 reserve_level = max_t(int, 1, btrfs_root_level(root_item));
1816 btrfs_node_key(path->nodes[level], &root_item->drop_progress,
1818 btrfs_set_root_drop_level(root_item, level);
1930 &root->reloc_root->root_item),
1935 &reloc_root->root_item));
1944 &reloc_root->root_item));
1959 btrfs_set_root_refs(&reloc_root->root_item, 1);
2024 if (btrfs_root_refs(&reloc_root->root_item) > 0) {
4185 memset(&root->root_item.drop_progress, 0,
4186 sizeof(root->root_item.drop_progress));
4187 btrfs_set_root_drop_level(&root->root_item, 0);
4188 btrfs_set_root_refs(&root->root_item, 0);
4190 &root->root_key, &root->root_item);
4255 if (btrfs_root_refs(&reloc_root->root_item) > 0) {
4313 if (btrfs_root_refs(&reloc_root->root_item) == 0) {
4443 btrfs_root_last_snapshot(&root->root_item))
4494 BUG_ON(btrfs_root_refs(&root->root_item) == 0);