Skip to content

Commit bdcffe4

Browse files
xshen053Steve French
authored andcommitted
Fix spelling errors in Server Message Block
Fixed typos in various files under fs/smb/client/ Signed-off-by: Xiaxi Shen <shenxiaxi26@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 1b5487a commit bdcffe4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

fs/smb/client/cifsglob.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ struct smb_version_operations {
345345
/* connect to a server share */
346346
int (*tree_connect)(const unsigned int, struct cifs_ses *, const char *,
347347
struct cifs_tcon *, const struct nls_table *);
348-
/* close tree connecion */
348+
/* close tree connection */
349349
int (*tree_disconnect)(const unsigned int, struct cifs_tcon *);
350350
/* get DFS referrals */
351351
int (*get_dfs_refer)(const unsigned int, struct cifs_ses *,
@@ -816,7 +816,7 @@ struct TCP_Server_Info {
816816
* Protected by @refpath_lock and @srv_lock. The @refpath_lock is
817817
* mostly used for not requiring a copy of @leaf_fullpath when getting
818818
* cached or new DFS referrals (which might also sleep during I/O).
819-
* While @srv_lock is held for making string and NULL comparions against
819+
* While @srv_lock is held for making string and NULL comparisons against
820820
* both fields as in mount(2) and cache refresh.
821821
*
822822
* format: \\HOST\SHARE[\OPTIONAL PATH]

fs/smb/client/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server)
352352
* on simple responses (wct, bcc both zero)
353353
* in particular have seen this on
354354
* ulogoffX and FindClose. This leaves
355-
* one byte of bcc potentially unitialized
355+
* one byte of bcc potentially uninitialized
356356
*/
357357
/* zero rest of bcc */
358358
tmp[sizeof(struct smb_hdr)+1] = 0;

fs/smb/client/smbdirect.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static void smbd_post_send_credits(struct work_struct *work)
406406
else
407407
response = get_empty_queue_buffer(info);
408408
if (!response) {
409-
/* now switch to emtpy packet queue */
409+
/* now switch to empty packet queue */
410410
if (use_receive_queue) {
411411
use_receive_queue = 0;
412412
continue;
@@ -618,7 +618,7 @@ static struct rdma_cm_id *smbd_create_id(
618618

619619
/*
620620
* Test if FRWR (Fast Registration Work Requests) is supported on the device
621-
* This implementation requries FRWR on RDMA read/write
621+
* This implementation requires FRWR on RDMA read/write
622622
* return value: true if it is supported
623623
*/
624624
static bool frwr_is_supported(struct ib_device_attr *attrs)
@@ -2177,7 +2177,7 @@ static int allocate_mr_list(struct smbd_connection *info)
21772177
* MR available in the list. It may access the list while the
21782178
* smbd_mr_recovery_work is recovering the MR list. This doesn't need a lock
21792179
* as they never modify the same places. However, there may be several CPUs
2180-
* issueing I/O trying to get MR at the same time, mr_list_lock is used to
2180+
* issuing I/O trying to get MR at the same time, mr_list_lock is used to
21812181
* protect this situation.
21822182
*/
21832183
static struct smbd_mr *get_mr(struct smbd_connection *info)
@@ -2311,7 +2311,7 @@ struct smbd_mr *smbd_register_mr(struct smbd_connection *info,
23112311
/*
23122312
* There is no need for waiting for complemtion on ib_post_send
23132313
* on IB_WR_REG_MR. Hardware enforces a barrier and order of execution
2314-
* on the next ib_post_send when we actaully send I/O to remote peer
2314+
* on the next ib_post_send when we actually send I/O to remote peer
23152315
*/
23162316
rc = ib_post_send(info->id->qp, &reg_wr->wr, NULL);
23172317
if (!rc)

fs/smb/client/transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
12891289
out:
12901290
/*
12911291
* This will dequeue all mids. After this it is important that the
1292-
* demultiplex_thread will not process any of these mids any futher.
1292+
* demultiplex_thread will not process any of these mids any further.
12931293
* This is prevented above by using a noop callback that will not
12941294
* wake this thread except for the very last PDU.
12951295
*/

0 commit comments

Comments
 (0)