Lines Matching refs:root_item

744 	struct btrfs_root_item *root_item;
749 root_item = kmalloc(sizeof(*root_item), GFP_NOFS);
750 if (!root_item)
775 btrfs_set_root_last_snapshot(&root->root_item, commit_root_gen);
796 memcpy(root_item, &root->root_item, sizeof(*root_item));
797 btrfs_set_root_bytenr(root_item, eb->start);
798 btrfs_set_root_level(root_item, btrfs_header_level(eb));
799 btrfs_set_root_generation(root_item, trans->transid);
802 btrfs_set_root_refs(root_item, 0);
803 memset(&root_item->drop_progress, 0,
805 btrfs_set_root_drop_level(root_item, 0);
812 &root_key, root_item);
816 kfree(root_item);
827 kfree(root_item);
913 struct btrfs_root_item *root_item;
920 root_item = &reloc_root->root_item;
931 btrfs_root_refs(root_item) == 0) {
943 btrfs_set_root_node(root_item, reloc_root->node);
949 &reloc_root->root_key, root_item);
1231 last_snapshot = btrfs_root_last_snapshot(&src->root_item);
1445 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
1483 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
1623 reloc_root_item = &reloc_root->root_item;
1700 struct btrfs_root_item *root_item;
1716 root_item = &reloc_root->root_item;
1718 if (btrfs_disk_key_objectid(&root_item->drop_progress) == 0) {
1719 level = btrfs_root_level(root_item);
1724 btrfs_disk_key_to_cpu(&key, &root_item->drop_progress);
1726 level = btrfs_root_drop_level(root_item);
1751 reserve_level = max_t(int, 1, btrfs_root_level(root_item));
1815 btrfs_node_key(path->nodes[level], &root_item->drop_progress,
1817 btrfs_set_root_drop_level(root_item, level);
1929 &root->reloc_root->root_item),
1934 &reloc_root->root_item));
1943 &reloc_root->root_item));
1958 btrfs_set_root_refs(&reloc_root->root_item, 1);
2023 if (btrfs_root_refs(&reloc_root->root_item) > 0) {
4232 memset(&root->root_item.drop_progress, 0,
4233 sizeof(root->root_item.drop_progress));
4234 btrfs_set_root_drop_level(&root->root_item, 0);
4235 btrfs_set_root_refs(&root->root_item, 0);
4237 &root->root_key, &root->root_item);
4302 if (btrfs_root_refs(&reloc_root->root_item) > 0) {
4360 if (btrfs_root_refs(&reloc_root->root_item) == 0) {
4491 btrfs_root_last_snapshot(&root->root_item))
4542 BUG_ON(btrfs_root_refs(&root->root_item) == 0);