Home
last modified time | relevance | path

Searched refs:map_item (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/fs/btrfs/
Dchunk-map.c23 struct chunk_map_item *map_item; in add_chunk_mapping() local
54 map_item = malloc(sizeof(struct chunk_map_item)); in add_chunk_mapping()
55 if (!map_item) in add_chunk_mapping()
58 map_item->logical = key->offset; in add_chunk_mapping()
59 map_item->length = chunk->length; in add_chunk_mapping()
60 map_item->physical = le64_to_cpu(chunk->stripe.offset); in add_chunk_mapping()
61 rb_link_node(&map_item->node, prnt, new); in add_chunk_mapping()
62 rb_insert_color(&map_item->node, &btrfs_info.chunks_root); in add_chunk_mapping()
64 debug("%s: Mapping %llu to %llu\n", __func__, map_item->logical, in add_chunk_mapping()
65 map_item->physical); in add_chunk_mapping()