lib/bdev: remove _spdk prefix from functions.

We want to avoid confusion between _spdk and spdk
prefixes.

Signed-off-by: Seth Howell <seth.howell@intel.com>
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 <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
Seth Howell 2020-05-14 16:18:25 -07:00 committed by Tomasz Zawadzki
parent 0506fd21ff
commit d145b9779f
2 changed files with 9 additions and 9 deletions

View File

@ -109,7 +109,7 @@ 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,
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)
{
@ -143,7 +143,7 @@ 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,
return zone_bdev_append_with_md(desc, ch, buf, NULL, start_lba, num_blocks,
cb, cb_arg);
}
@ -152,7 +152,7 @@ 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,
return zone_bdev_append_with_md(desc, ch, buf, md, start_lba, num_blocks,
cb, cb_arg);
}

View File

@ -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);
}