linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] nvmet: fix a typo in nvmet_file_ns_enable()
@ 2018-05-31  1:55 Wei Yongjun
  2018-05-31  4:49 ` Sagi Grimberg
  2018-05-31 16:48 ` Christoph Hellwig
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2018-05-31  1:55 UTC (permalink / raw)
  To: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni
  Cc: Wei Yongjun, linux-nvme, linux-kernel, kernel-janitors

Fix a typo in nvmet_file_ns_enable().

Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/nvme/target/io-cmd-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/target/io-cmd-file.c b/drivers/nvme/target/io-cmd-file.c
index ca1ccf8..9cff553 100644
--- a/drivers/nvme/target/io-cmd-file.c
+++ b/drivers/nvme/target/io-cmd-file.c
@@ -34,7 +34,7 @@ int nvmet_file_ns_enable(struct nvmet_ns *ns)
 			O_RDWR | O_LARGEFILE | O_DIRECT, 0);
 	if (IS_ERR(ns->file)) {
 		pr_err("failed to open file %s: (%ld)\n",
-				ns->device_path, PTR_ERR(ns->bdev));
+				ns->device_path, PTR_ERR(ns->file));
 		return PTR_ERR(ns->file);
 	}

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] nvmet: fix a typo in nvmet_file_ns_enable()
  2018-05-31  1:55 [PATCH -next] nvmet: fix a typo in nvmet_file_ns_enable() Wei Yongjun
@ 2018-05-31  4:49 ` Sagi Grimberg
  2018-05-31 16:48 ` Christoph Hellwig
  1 sibling, 0 replies; 3+ messages in thread
From: Sagi Grimberg @ 2018-05-31  4:49 UTC (permalink / raw)
  To: Wei Yongjun, Christoph Hellwig, Chaitanya Kulkarni
  Cc: linux-nvme, linux-kernel, kernel-janitors

Reviewed-by: Sagi Grimberg <sagi@grimberg.e>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] nvmet: fix a typo in nvmet_file_ns_enable()
  2018-05-31  1:55 [PATCH -next] nvmet: fix a typo in nvmet_file_ns_enable() Wei Yongjun
  2018-05-31  4:49 ` Sagi Grimberg
@ 2018-05-31 16:48 ` Christoph Hellwig
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-05-31 16:48 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni, linux-nvme,
	linux-kernel, kernel-janitors

Thanks,

applied to nvme-4.18.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-31 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-31  1:55 [PATCH -next] nvmet: fix a typo in nvmet_file_ns_enable() Wei Yongjun
2018-05-31  4:49 ` Sagi Grimberg
2018-05-31 16:48 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).