Searched refs:new_root_item (Results 1 – 1 of 1) sorted by relevance
1303 struct btrfs_root_item *new_root_item; in create_pending_snapshot() local1328 new_root_item = kmalloc(sizeof(*new_root_item), GFP_NOFS); in create_pending_snapshot()1329 if (!new_root_item) { in create_pending_snapshot()1403 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()1404 btrfs_check_and_init_root_item(new_root_item); in create_pending_snapshot()1406 root_flags = btrfs_root_flags(new_root_item); in create_pending_snapshot()1411 btrfs_set_root_flags(new_root_item, root_flags); in create_pending_snapshot()1413 btrfs_set_root_generation_v2(new_root_item, in create_pending_snapshot()1416 memcpy(new_root_item->uuid, new_uuid.b, BTRFS_UUID_SIZE); in create_pending_snapshot()1417 memcpy(new_root_item->parent_uuid, root->root_item.uuid, in create_pending_snapshot()[all …]