mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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 <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
44ef5611c2
commit
7a36604668
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue