From: Chaitanya Kulkarni Date: Mon, 1 Mar 2021 02:06:06 +0000 (-0800) Subject: nvme: mark nvme_setup_passsthru() inline X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7a36604668b9b1f84126ef0342144ba5b07e518f;p=linux.git nvme: mark nvme_setup_passsthru() inline Since nvmet_setup_passthru() function falls in fast path when called from the NVMeOF passthru backend, make it inline. Signed-off-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index ce16d24ffdce0..aa7b03290cefb 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -726,7 +726,7 @@ static void nvme_assign_write_stream(struct nvme_ctrl *ctrl, req->q->write_hints[streamid] += blk_rq_bytes(req) >> 9; } -static void nvme_setup_passthrough(struct request *req, +static inline void nvme_setup_passthrough(struct request *req, struct nvme_command *cmd) { memcpy(cmd, nvme_req(req)->cmd, sizeof(*cmd));