Searched refs:new_root_item (Results 1 – 1 of 1) sorted by relevance
1258 struct btrfs_root_item *new_root_item; in create_pending_snapshot() local1283 new_root_item = kmalloc(sizeof(*new_root_item), GFP_NOFS); in create_pending_snapshot()1284 if (!new_root_item) { in create_pending_snapshot()1352 memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); in create_pending_snapshot()1353 btrfs_check_and_init_root_item(new_root_item); in create_pending_snapshot()1355 root_flags = btrfs_root_flags(new_root_item); in create_pending_snapshot()1360 btrfs_set_root_flags(new_root_item, root_flags); in create_pending_snapshot()1362 btrfs_set_root_generation_v2(new_root_item, in create_pending_snapshot()1365 memcpy(new_root_item->uuid, new_uuid.b, BTRFS_UUID_SIZE); in create_pending_snapshot()1366 memcpy(new_root_item->parent_uuid, root->root_item.uuid, in create_pending_snapshot()[all …]