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:
parent
0506fd21ff
commit
d145b9779f
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user