module/bdev_zone: remove spdk prefix from internal functions.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: I20be68b52b1db7b3eb3476e965bc02454e7fc330
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2339
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Seth Howell 2020-05-10 01:34:03 -07:00 committed by Tomasz Zawadzki
parent 406d9482fa
commit a5e56dd3f2
3 changed files with 9 additions and 9 deletions

View File

@ -848,7 +848,7 @@ free_config:
}
int
spdk_vbdev_zone_block_create(const char *bdev_name, const char *vbdev_name, uint64_t zone_capacity,
vbdev_zone_block_create(const char *bdev_name, const char *vbdev_name, uint64_t zone_capacity,
uint64_t optimal_open_zones)
{
struct spdk_bdev *bdev = NULL;
@ -884,7 +884,7 @@ spdk_vbdev_zone_block_create(const char *bdev_name, const char *vbdev_name, uint
}
void
spdk_vbdev_zone_block_delete(const char *name, spdk_bdev_unregister_cb cb_fn, void *cb_arg)
vbdev_zone_block_delete(const char *name, spdk_bdev_unregister_cb cb_fn, void *cb_arg)
{
struct bdev_zone_block_config *name_node;
struct spdk_bdev *bdev = NULL;

View File

@ -39,9 +39,9 @@
#include "spdk/bdev.h"
#include "spdk/bdev_module.h"
int spdk_vbdev_zone_block_create(const char *bdev_name, const char *vbdev_name,
int vbdev_zone_block_create(const char *bdev_name, const char *vbdev_name,
uint64_t zone_capacity, uint64_t optimal_open_zones);
void spdk_vbdev_zone_block_delete(const char *name, spdk_bdev_unregister_cb cb_fn, void *cb_arg);
void vbdev_zone_block_delete(const char *name, spdk_bdev_unregister_cb cb_fn, void *cb_arg);
#endif /* SPDK_VBDEV_ZONE_BLOCK_H */

View File

@ -79,7 +79,7 @@ rpc_zone_block_create(struct spdk_jsonrpc_request *request,
goto cleanup;
}
rc = spdk_vbdev_zone_block_create(req.base_bdev, req.name, req.zone_capacity,
rc = vbdev_zone_block_create(req.base_bdev, req.name, req.zone_capacity,
req.optimal_open_zones);
if (rc) {
SPDK_ERRLOG("Failed to create block zoned vbdev: %s", spdk_strerror(-rc));
@ -138,7 +138,7 @@ rpc_zone_block_delete(struct spdk_jsonrpc_request *request,
goto cleanup;
}
spdk_vbdev_zone_block_delete(attrs.name, _rpc_delete_zone_block_cb, request);
vbdev_zone_block_delete(attrs.name, _rpc_delete_zone_block_cb, request);
cleanup:
free_rpc_delete_zone_block(&attrs);