nvme: explicitly mark _nvme_ns_cmd_rw as inline
This is a small optimization. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ib593908d3aeb17aac55be06b8e3be42e28a23061 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456268 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
9da1c7384d
commit
da366fd09f
@ -33,7 +33,8 @@
|
||||
|
||||
#include "nvme_internal.h"
|
||||
|
||||
static struct nvme_request *_nvme_ns_cmd_rw(struct spdk_nvme_ns *ns, struct spdk_nvme_qpair *qpair,
|
||||
static inline struct nvme_request *_nvme_ns_cmd_rw(struct spdk_nvme_ns *ns,
|
||||
struct spdk_nvme_qpair *qpair,
|
||||
const struct nvme_payload *payload, uint32_t payload_offset, uint32_t md_offset,
|
||||
uint64_t lba, uint32_t lba_count, spdk_nvme_cmd_cb cb_fn,
|
||||
void *cb_arg, uint32_t opc, uint32_t io_flags,
|
||||
@ -435,7 +436,7 @@ _nvme_ns_cmd_split_request_sgl(struct spdk_nvme_ns *ns,
|
||||
return req;
|
||||
}
|
||||
|
||||
static struct nvme_request *
|
||||
static inline struct nvme_request *
|
||||
_nvme_ns_cmd_rw(struct spdk_nvme_ns *ns, struct spdk_nvme_qpair *qpair,
|
||||
const struct nvme_payload *payload, uint32_t payload_offset, uint32_t md_offset,
|
||||
uint64_t lba, uint32_t lba_count, spdk_nvme_cmd_cb cb_fn, void *cb_arg, uint32_t opc,
|
||||
|
Loading…
Reference in New Issue
Block a user