Commit 6fa48bbf authored by Chen Wang's avatar Chen Wang Committed by Jim Harris
Browse files

lib: fix typos in the lib directory



Change-Id: Idcb60b79d2902bb316facc6f60e0a81e5cf847ed
Signed-off-by: default avatarChen Wang <chenx.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/423372


Reviewed-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 3e8a7c11
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ struct spdk_bdev_qos {
	/** Submitted byte in one timeslice (e.g., 1ms) */
	uint64_t byte_submitted_this_timeslice;

	/** Polller that processes queued I/O commands each time slice. */
	/** Poller that processes queued I/O commands each time slice. */
	struct spdk_poller *poller;
};

@@ -172,7 +172,7 @@ struct spdk_bdev_mgmt_channel {

/*
 * Per-module (or per-io_device) data. Multiple bdevs built on the same io_device
 * will queue here their IO that awaits retry. It makes it posible to retry sending
 * will queue here their IO that awaits retry. It makes it possible to retry sending
 * IO to one bdev after IO from other bdev completes.
 */
struct spdk_bdev_shared_resource {
+4 −4
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ vbdev_passthru_submit_request(struct spdk_io_channel *ch, struct spdk_bdev_io *b
}

/* We'll just call the base bdev and let it answer however if we were more
 * restrictive for some reason (or less) we could get the repsonse back
 * restrictive for some reason (or less) we could get the response back
 * and modify according to our purposes.
 */
static bool
@@ -256,7 +256,7 @@ vbdev_passthru_get_io_channel(void *ctx)
	struct spdk_io_channel *pt_ch = NULL;

	/* The IO channel code will allocate a channel for us which consists of
	 * the SPDK cahnnel structure plus the size of our pt_io_channel struct
	 * the SPDK channel structure plus the size of our pt_io_channel struct
	 * that we passed in when we registered our IO device. It will then call
	 * our channel create callback to populate any elements that we need to
	 * update.
@@ -448,7 +448,7 @@ vbdev_passthru_write_json_config(struct spdk_bdev *bdev, struct spdk_json_write_
	spdk_json_write_object_end(w);
}

/* When we regsiter our bdev this is how we specify our entry points. */
/* When we register our bdev this is how we specify our entry points. */
static const struct spdk_bdev_fn_table vbdev_passthru_fn_table = {
	.destruct		= vbdev_passthru_destruct,
	.submit_request		= vbdev_passthru_submit_request,
@@ -507,7 +507,7 @@ vbdev_passthru_register(struct spdk_bdev *bdev)
		}
		pt_node->pt_bdev.product_name = "passthru";

		/* Copy some properties from the underying base bdev. */
		/* Copy some properties from the underlying base bdev. */
		pt_node->pt_bdev.write_cache = bdev->write_cache;
		pt_node->pt_bdev.need_aligned_buffer = bdev->need_aligned_buffer;
		pt_node->pt_bdev.optimal_io_boundary = bdev->optimal_io_boundary;
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ typedef void (*spdk_delete_pmem_complete)(void *cb_arg, int bdeverrno);
 * \param bdev output parameter for bdev when operation is successful.
 * \return 0 on success.
 *         -EIO if pool check failed
 *         -EINVAL if input paramteres check failed
 *         -EINVAL if input parameters check failed
 *         -ENOMEM if buffer cannot be allocated
 */
int spdk_create_pmem_disk(const char *pmem_file, const char *name, struct spdk_bdev **bdev);
+1 −1
Original line number Diff line number Diff line
@@ -557,7 +557,7 @@ raid_bdev_io_submit_fail_process(struct raid_bdev *raid_bdev, struct spdk_bdev_i
/*
 * brief:
 * raid_bdev_waitq_io_process function is the callback function
 * registerd by raid bdev module to bdev when bdev_io was unavailable.
 * registered by raid bdev module to bdev when bdev_io was unavailable.
 * params:
 * ctx - pointer to raid_bdev_io
 * returns:
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ int create_vbdev_split(const char *base_bdev_name, unsigned split_count, uint64_
 * Remove all created split bdevs and split config.
 *
 * \param base_bdev_name base bdev name
 * \return 0 on succes or negative errno value.
 * \return 0 on success or negative errno value.
 */
int spdk_vbdev_split_destruct(const char *base_bdev_name);

Loading