util/bit_array: switch to spdk_*malloc().

spdk_dma_*malloc() is about to be deprecated.

Change-Id: I1ad624aa64c70e6f5716d711bb6d2d6b6cd1007d
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450257
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Darek Stojaczyk 2019-04-05 10:48:40 +02:00 committed by Changpeng Liu
parent 6342332847
commit 20d575bba5

View File

@ -74,7 +74,7 @@ spdk_bit_array_free(struct spdk_bit_array **bap)
ba = *bap;
*bap = NULL;
spdk_dma_free(ba);
spdk_free(ba);
}
static inline uint32_t
@ -114,7 +114,7 @@ spdk_bit_array_resize(struct spdk_bit_array **bap, uint32_t num_bits)
*/
new_size += SPDK_BIT_ARRAY_WORD_BYTES;
new_ba = (struct spdk_bit_array *)spdk_dma_realloc(*bap, new_size, 64, NULL);
new_ba = (struct spdk_bit_array *)spdk_realloc(*bap, new_size, 64);
if (!new_ba) {
return -ENOMEM;
}