Commit d145b977 authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

lib/bdev: remove _spdk prefix from functions.



We want to avoid confusion between _spdk and spdk
prefixes.

Signed-off-by: default avatarSeth 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent 0506fd21
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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);
}

+2 −2
Original line number Diff line number Diff line
@@ -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);
		}