Searched refs:new_root_item (Results 1 – 1 of 1) sorted by relevance
743 struct btrfs_root_item *new_root_item; in create_pending_snapshot() local751 new_root_item = kmalloc(sizeof(*new_root_item), GFP_NOFS); in create_pending_snapshot()752 if (!new_root_item) { in create_pending_snapshot()762 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()775 btrfs_set_root_bytenr(new_root_item, tmp->start); in create_pending_snapshot()776 btrfs_set_root_level(new_root_item, btrfs_header_level(tmp)); in create_pending_snapshot()777 btrfs_set_root_generation(new_root_item, trans->transid); in create_pending_snapshot()779 new_root_item); in create_pending_snapshot()788 kfree(new_root_item); in create_pending_snapshot()