Lines Matching refs:new_root_item
1445 struct btrfs_root_item *new_root_item; in create_pending_snapshot() local
1468 new_root_item = pending->root_item; in create_pending_snapshot()
1543 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()
1544 btrfs_check_and_init_root_item(new_root_item); in create_pending_snapshot()
1546 root_flags = btrfs_root_flags(new_root_item); in create_pending_snapshot()
1551 btrfs_set_root_flags(new_root_item, root_flags); in create_pending_snapshot()
1553 btrfs_set_root_generation_v2(new_root_item, in create_pending_snapshot()
1556 memcpy(new_root_item->uuid, new_uuid.b, BTRFS_UUID_SIZE); in create_pending_snapshot()
1557 memcpy(new_root_item->parent_uuid, root->root_item.uuid, in create_pending_snapshot()
1560 memset(new_root_item->received_uuid, 0, in create_pending_snapshot()
1561 sizeof(new_root_item->received_uuid)); in create_pending_snapshot()
1562 memset(&new_root_item->stime, 0, sizeof(new_root_item->stime)); in create_pending_snapshot()
1563 memset(&new_root_item->rtime, 0, sizeof(new_root_item->rtime)); in create_pending_snapshot()
1564 btrfs_set_root_stransid(new_root_item, 0); in create_pending_snapshot()
1565 btrfs_set_root_rtransid(new_root_item, 0); in create_pending_snapshot()
1567 btrfs_set_stack_timespec_sec(&new_root_item->otime, cur_time.tv_sec); in create_pending_snapshot()
1568 btrfs_set_stack_timespec_nsec(&new_root_item->otime, cur_time.tv_nsec); in create_pending_snapshot()
1569 btrfs_set_root_otransid(new_root_item, trans->transid); in create_pending_snapshot()
1594 btrfs_set_root_node(new_root_item, tmp); in create_pending_snapshot()
1597 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot()
1674 if (!btrfs_is_empty_uuid(new_root_item->received_uuid)) { in create_pending_snapshot()
1675 ret = btrfs_uuid_tree_add(trans, new_root_item->received_uuid, in create_pending_snapshot()
1698 kfree(new_root_item); in create_pending_snapshot()