summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/int-map.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-vdo/int-map.c')
-rw-r--r--drivers/md/dm-vdo/int-map.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/md/dm-vdo/int-map.c b/drivers/md/dm-vdo/int-map.c
index e0953e013f15..0bd742ecbe2e 100644
--- a/drivers/md/dm-vdo/int-map.c
+++ b/drivers/md/dm-vdo/int-map.c
@@ -164,7 +164,7 @@ static int allocate_buckets(struct int_map *map, size_t capacity)
* without have to wrap back around to element zero.
*/
map->bucket_count = capacity + (NEIGHBORHOOD - 1);
- return uds_allocate(map->bucket_count, struct bucket,
+ return vdo_allocate(map->bucket_count, struct bucket,
"struct int_map buckets", &map->buckets);
}
@@ -182,7 +182,7 @@ int vdo_int_map_create(size_t initial_capacity, struct int_map **map_ptr)
int result;
size_t capacity;
- result = uds_allocate(1, struct int_map, "struct int_map", &map);
+ result = vdo_allocate(1, struct int_map, "struct int_map", &map);
if (result != UDS_SUCCESS)
return result;
@@ -197,7 +197,7 @@ int vdo_int_map_create(size_t initial_capacity, struct int_map **map_ptr)
result = allocate_buckets(map, capacity);
if (result != UDS_SUCCESS) {
- vdo_int_map_free(uds_forget(map));
+ vdo_int_map_free(vdo_forget(map));
return result;
}
@@ -217,8 +217,8 @@ void vdo_int_map_free(struct int_map *map)
if (map == NULL)
return;
- uds_free(uds_forget(map->buckets));
- uds_free(uds_forget(map));
+ vdo_free(vdo_forget(map->buckets));
+ vdo_free(vdo_forget(map));
}
/**
@@ -399,14 +399,14 @@ static int resize_buckets(struct int_map *map)
result = vdo_int_map_put(map, entry->key, entry->value, true, NULL);
if (result != UDS_SUCCESS) {
/* Destroy the new partial map and restore the map from the stack. */
- uds_free(uds_forget(map->buckets));
+ vdo_free(vdo_forget(map->buckets));
*map = old_map;
return result;
}
}
/* Destroy the old bucket array. */
- uds_free(uds_forget(old_map.buckets));
+ vdo_free(vdo_forget(old_map.buckets));
return UDS_SUCCESS;
}