Skip to content

Commit 44e479d

Browse files
yizhanglinuxChristoph Hellwig
authored andcommitted
nvme: spelling fixes
Fix various spelling errors in comments. Signed-off-by: Yi Zhang <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent f42d479 commit 44e479d

File tree

16 files changed

+23
-23
lines changed

16 files changed

+23
-23
lines changed

drivers/nvme/common/auth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ EXPORT_SYMBOL_GPL(nvme_auth_generate_key);
471471
* @c1: Value of challenge C1
472472
* @c2: Value of challenge C2
473473
* @hash_len: Hash length of the hash algorithm
474-
* @ret_psk: Pointer too the resulting generated PSK
474+
* @ret_psk: Pointer to the resulting generated PSK
475475
* @ret_len: length of @ret_psk
476476
*
477477
* Generate a PSK for TLS as specified in NVMe base specification, section
@@ -759,8 +759,8 @@ int nvme_auth_derive_tls_psk(int hmac_id, u8 *psk, size_t psk_len,
759759
goto out_free_prk;
760760

761761
/*
762-
* 2 addtional bytes for the length field from HDKF-Expand-Label,
763-
* 2 addtional bytes for the HMAC ID, and one byte for the space
762+
* 2 additional bytes for the length field from HDKF-Expand-Label,
763+
* 2 additional bytes for the HMAC ID, and one byte for the space
764764
* separator.
765765
*/
766766
info_len = strlen(psk_digest) + strlen(psk_prefix) + 5;

drivers/nvme/host/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ config NVME_TCP_TLS
106106
help
107107
Enables TLS encryption for NVMe TCP using the netlink handshake API.
108108

109-
The TLS handshake daemon is availble at
109+
The TLS handshake daemon is available at
110110
https://github.com/oracle/ktls-utils.
111111

112112
If unsure, say N.

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ static inline blk_status_t nvme_setup_rw(struct nvme_ns *ns,
10261026

10271027
if (ns->head->ms) {
10281028
/*
1029-
* If formated with metadata, the block layer always provides a
1029+
* If formatted with metadata, the block layer always provides a
10301030
* metadata buffer if CONFIG_BLK_DEV_INTEGRITY is enabled. Else
10311031
* we enable the PRACT bit for protection information or set the
10321032
* namespace capacity to zero to prevent any I/O.

drivers/nvme/host/fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ EXPORT_SYMBOL_GPL(nvmf_connect_io_queue);
582582
* Do not retry when:
583583
*
584584
* - the DNR bit is set and the specification states no further connect
585-
* attempts with the same set of paramenters should be attempted.
585+
* attempts with the same set of parameters should be attempted.
586586
*
587587
* - when the authentication attempt fails, because the key was invalid.
588588
* This error code is set on the host side.

drivers/nvme/host/fabrics.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ enum {
8080
* @transport: Holds the fabric transport "technology name" (for a lack of
8181
* better description) that will be used by an NVMe controller
8282
* being added.
83-
* @subsysnqn: Hold the fully qualified NQN subystem name (format defined
83+
* @subsysnqn: Hold the fully qualified NQN subsystem name (format defined
8484
* in the NVMe specification, "NVMe Qualified Names").
8585
* @traddr: The transport-specific TRADDR field for a port on the
8686
* subsystem which is adding a controller.
@@ -156,7 +156,7 @@ struct nvmf_ctrl_options {
156156
* @create_ctrl(): function pointer that points to a non-NVMe
157157
* implementation-specific fabric technology
158158
* that would go into starting up that fabric
159-
* for the purpose of conneciton to an NVMe controller
159+
* for the purpose of connection to an NVMe controller
160160
* using that fabric technology.
161161
*
162162
* Notes:
@@ -165,7 +165,7 @@ struct nvmf_ctrl_options {
165165
* 2. create_ctrl() must be defined (even if it does nothing)
166166
* 3. struct nvmf_transport_ops must be statically allocated in the
167167
* modules .bss section so that a pure module_get on @module
168-
* prevents the memory from beeing freed.
168+
* prevents the memory from being freed.
169169
*/
170170
struct nvmf_transport_ops {
171171
struct list_head entry;

drivers/nvme/host/fc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ nvme_fc_fcpio_done(struct nvmefc_fcp_req *req)
19551955
}
19561956

19571957
/*
1958-
* For the linux implementation, if we have an unsuccesful
1958+
* For the linux implementation, if we have an unsucceesful
19591959
* status, they blk-mq layer can typically be called with the
19601960
* non-zero status and the content of the cqe isn't important.
19611961
*/
@@ -2479,7 +2479,7 @@ __nvme_fc_abort_outstanding_ios(struct nvme_fc_ctrl *ctrl, bool start_queues)
24792479
* writing the registers for shutdown and polling (call
24802480
* nvme_disable_ctrl()). Given a bunch of i/o was potentially
24812481
* just aborted and we will wait on those contexts, and given
2482-
* there was no indication of how live the controlelr is on the
2482+
* there was no indication of how live the controller is on the
24832483
* link, don't send more io to create more contexts for the
24842484
* shutdown. Let the controller fail via keepalive failure if
24852485
* its still present.

drivers/nvme/host/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ int nvme_ns_head_ioctl(struct block_device *bdev, blk_mode_t mode,
729729

730730
/*
731731
* Handle ioctls that apply to the controller instead of the namespace
732-
* seperately and drop the ns SRCU reference early. This avoids a
732+
* separately and drop the ns SRCU reference early. This avoids a
733733
* deadlock when deleting namespaces using the passthrough interface.
734734
*/
735735
if (is_ctrl_ioctl(cmd))

drivers/nvme/host/multipath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
760760
* controller's scan_work context. If a path error occurs here, the IO
761761
* will wait until a path becomes available or all paths are torn down,
762762
* but that action also occurs within scan_work, so it would deadlock.
763-
* Defer the partion scan to a different context that does not block
763+
* Defer the partition scan to a different context that does not block
764764
* scan_work.
765765
*/
766766
set_bit(GD_SUPPRESS_PART_SCAN, &head->disk->state);

drivers/nvme/host/nvme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static inline bool nvme_ns_head_multipath(struct nvme_ns_head *head)
523523
enum nvme_ns_features {
524524
NVME_NS_EXT_LBAS = 1 << 0, /* support extended LBA format */
525525
NVME_NS_METADATA_SUPPORTED = 1 << 1, /* support getting generated md */
526-
NVME_NS_DEAC = 1 << 2, /* DEAC bit in Write Zeores supported */
526+
NVME_NS_DEAC = 1 << 2, /* DEAC bit in Write Zeroes supported */
527527
};
528528

529529
struct nvme_ns {

drivers/nvme/host/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,7 +3015,7 @@ static void nvme_reset_work(struct work_struct *work)
30153015
goto out;
30163016

30173017
/*
3018-
* Freeze and update the number of I/O queues as thos might have
3018+
* Freeze and update the number of I/O queues as those might have
30193019
* changed. If there are no I/O queues left after this reset, keep the
30203020
* controller around but remove all namespaces.
30213021
*/
@@ -3186,7 +3186,7 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
31863186
/*
31873187
* Exclude some Kingston NV1 and A2000 devices from
31883188
* NVME_QUIRK_SIMPLE_SUSPEND. Do a full suspend to save a
3189-
* lot fo energy with s2idle sleep on some TUXEDO platforms.
3189+
* lot of energy with s2idle sleep on some TUXEDO platforms.
31903190
*/
31913191
if (dmi_match(DMI_BOARD_NAME, "NS5X_NS7XAU") ||
31923192
dmi_match(DMI_BOARD_NAME, "NS5x_7xAU") ||

0 commit comments

Comments
 (0)