From d145b9779f4d5e610e4d40cb1d773365ed1d4bd0 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Thu, 14 May 2020 16:18:25 -0700 Subject: [PATCH] lib/bdev: remove _spdk prefix from functions. We want to avoid confusion between _spdk and spdk prefixes. Signed-off-by: Seth Howell Change-Id: I72b7948d94b0e9d695ae6b323fbd8bb6e4c143e2 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2436 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker Reviewed-by: Aleksey Marchuk --- lib/bdev/bdev_zone.c | 14 +++++++------- lib/bdev/part.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/bdev/bdev_zone.c b/lib/bdev/bdev_zone.c index 18780c2a8..3cf2ecb67 100644 --- a/lib/bdev/bdev_zone.c +++ b/lib/bdev/bdev_zone.c @@ -109,9 +109,9 @@ spdk_bdev_zone_management(struct spdk_bdev_desc *desc, struct spdk_io_channel *c } static int -_spdk_bdev_append_with_md(struct spdk_bdev_desc *desc, struct spdk_io_channel *ch, - void *buf, void *md_buf, uint64_t zone_id, uint64_t num_blocks, - spdk_bdev_io_completion_cb cb, void *cb_arg) +zone_bdev_append_with_md(struct spdk_bdev_desc *desc, struct spdk_io_channel *ch, + void *buf, void *md_buf, uint64_t zone_id, uint64_t num_blocks, + spdk_bdev_io_completion_cb cb, void *cb_arg) { struct spdk_bdev *bdev = spdk_bdev_desc_get_bdev(desc); struct spdk_bdev_io *bdev_io; @@ -143,8 +143,8 @@ spdk_bdev_zone_append(struct spdk_bdev_desc *desc, struct spdk_io_channel *ch, void *buf, uint64_t start_lba, uint64_t num_blocks, spdk_bdev_io_completion_cb cb, void *cb_arg) { - return _spdk_bdev_append_with_md(desc, ch, buf, NULL, start_lba, num_blocks, - cb, cb_arg); + return zone_bdev_append_with_md(desc, ch, buf, NULL, start_lba, num_blocks, + cb, cb_arg); } int @@ -152,8 +152,8 @@ spdk_bdev_zone_append_with_md(struct spdk_bdev_desc *desc, struct spdk_io_channe void *buf, void *md, uint64_t start_lba, uint64_t num_blocks, spdk_bdev_io_completion_cb cb, void *cb_arg) { - return _spdk_bdev_append_with_md(desc, ch, buf, md, start_lba, num_blocks, - cb, cb_arg); + return zone_bdev_append_with_md(desc, ch, buf, md, start_lba, num_blocks, + cb, cb_arg); } int diff --git a/lib/bdev/part.c b/lib/bdev/part.c index 4e2a8449d..01a395591 100644 --- a/lib/bdev/part.c +++ b/lib/bdev/part.c @@ -90,7 +90,7 @@ spdk_bdev_part_base_get_bdev_name(struct spdk_bdev_part_base *part_base) } static void -_spdk_bdev_part_base_free(void *ctx) +bdev_part_base_free(void *ctx) { struct spdk_bdev_desc *desc = ctx; @@ -103,7 +103,7 @@ spdk_bdev_part_base_free(struct spdk_bdev_part_base *base) if (base->desc) { /* Close the underlying bdev on its same opened thread. */ if (base->thread && base->thread != spdk_get_thread()) { - spdk_thread_send_msg(base->thread, _spdk_bdev_part_base_free, base->desc); + spdk_thread_send_msg(base->thread, bdev_part_base_free, base->desc); } else { spdk_bdev_close(base->desc); }