Skip to content

Commit e8c263e

Browse files
Chaitanya Kulkarnikeithbusch
authored andcommitted
nvme-core: fix comment to reflect right functions
The functions and the attribute listed in the comment doesn't exists in the code, (ns->logging_enabled, nvme_passthru_err_log_enabled_store() and nvme_passthru_err_log_enabled_show()) Update the comment with right function names and a comment ns->head->passthru_err_log_enabled, nvme_io_passthru_err_log_enabled_store() and nvme_io_passthru_err_log_enabled_show(). Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Alan Adamson <alan.adamson@oracle.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 1f4137e commit e8c263e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,8 +3761,8 @@ static void nvme_alloc_ns(struct nvme_ctrl *ctrl, struct nvme_ns_info *info)
37613761

37623762
/*
37633763
* Set ns->disk->device->driver_data to ns so we can access
3764-
* ns->logging_enabled in nvme_passthru_err_log_enabled_store() and
3765-
* nvme_passthru_err_log_enabled_show().
3764+
* ns->head->passthru_err_log_enabled in
3765+
* nvme_io_passthru_err_log_enabled_[store | show]().
37663766
*/
37673767
dev_set_drvdata(disk_to_dev(ns->disk), ns);
37683768

0 commit comments

Comments
 (0)