Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smb: client: Correct typos in multiple comments across various files

Fixed some confusing typos that were currently identified witch codespell,
the details are as follows:

-in the code comments:
fs/smb/client/cifsacl.h:58: inheritence ==> inheritance
fs/smb/client/cifsencrypt.c:242: origiginal ==> original
fs/smb/client/cifsfs.c:164: referece ==> reference
fs/smb/client/cifsfs.c:292: ned ==> need
fs/smb/client/cifsglob.h:779: initital ==> initial
fs/smb/client/cifspdu.h:784: altetnative ==> alternative
fs/smb/client/cifspdu.h:2409: conrol ==> control
fs/smb/client/cifssmb.c:1218: Expirement ==> Experiment
fs/smb/client/cifssmb.c:3021: conver ==> convert
fs/smb/client/cifssmb.c:3998: asterik ==> asterisk
fs/smb/client/file.c:2505: useable ==> usable
fs/smb/client/fs_context.h:263: timemout ==> timeout
fs/smb/client/misc.c:257: responsbility ==> responsibility
fs/smb/client/netmisc.c:1006: divisable ==> divisible
fs/smb/client/readdir.c:556: endianess ==> endianness
fs/smb/client/readdir.c:818: bu ==> by
fs/smb/client/smb2ops.c:2180: snaphots ==> snapshots
fs/smb/client/smb2ops.c:3586: otions ==> options
fs/smb/client/smb2pdu.c:2979: timestaps ==> timestamps
fs/smb/client/smb2pdu.c:4574: memmory ==> memory
fs/smb/client/smb2transport.c:699: origiginal ==> original
fs/smb/client/smbdirect.c:222: happenes ==> happens
fs/smb/client/smbdirect.c:1347: registartions ==> registrations
fs/smb/client/smbdirect.h:114: accoutning ==> accounting

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

Shen Lichuan and committed by
Steve French
e9f49fee a421e3fe

+24 -24
+1 -1
fs/smb/client/cifsacl.h
··· 55 55 #define ACL_CONTROL_SI 0x0800 /* SACL Auto-Inherited */ 56 56 #define ACL_CONTROL_DI 0x0400 /* DACL Auto-Inherited */ 57 57 #define ACL_CONTROL_SC 0x0200 /* SACL computed through inheritance */ 58 - #define ACL_CONTROL_DC 0x0100 /* DACL computed through inheritence */ 58 + #define ACL_CONTROL_DC 0x0100 /* DACL computed through inheritance */ 59 59 #define ACL_CONTROL_SS 0x0080 /* Create server ACL */ 60 60 #define ACL_CONTROL_DT 0x0040 /* DACL provided by trusted source */ 61 61 #define ACL_CONTROL_SD 0x0020 /* SACL defaulted */
+1 -1
fs/smb/client/cifsencrypt.c
··· 239 239 cifs_dbg(FYI, "dummy signature received for smb command 0x%x\n", 240 240 cifs_pdu->Command); 241 241 242 - /* save off the origiginal signature so we can modify the smb and check 242 + /* save off the original signature so we can modify the smb and check 243 243 its signature against what the server sent */ 244 244 memcpy(server_response_sig, cifs_pdu->Signature.SecuritySignature, 8); 245 245
+2 -2
fs/smb/client/cifsfs.c
··· 161 161 162 162 /* 163 163 * Bumps refcount for cifs super block. 164 - * Note that it should be only called if a referece to VFS super block is 164 + * Note that it should be only called if a reference to VFS super block is 165 165 * already held, e.g. in open-type syscalls context. Otherwise it can race with 166 166 * atomic_dec_and_test in deactivate_locked_super. 167 167 */ ··· 289 289 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); 290 290 291 291 /* 292 - * We ned to release all dentries for the cached directories 292 + * We need to release all dentries for the cached directories 293 293 * before we kill the sb. 294 294 */ 295 295 if (cifs_sb->root) {
+1 -1
fs/smb/client/cifsglob.h
··· 775 775 } compression; 776 776 __u16 signing_algorithm; 777 777 __le16 cipher_type; 778 - /* save initital negprot hash */ 778 + /* save initial negprot hash */ 779 779 __u8 preauth_sha_hash[SMB2_PREAUTH_HASH_SIZE]; 780 780 bool signing_negotiated; /* true if valid signing context rcvd from server */ 781 781 bool posix_ext_supported;
+2 -2
fs/smb/client/cifspdu.h
··· 781 781 __u16 ByteCount; 782 782 } __attribute__((packed)) LOGOFF_ANDX_RSP; 783 783 784 - typedef union smb_com_tree_disconnect { /* as an altetnative can use flag on 784 + typedef union smb_com_tree_disconnect { /* as an alternative can use flag on 785 785 tree_connect PDU to effect disconnect */ 786 786 /* tdis is probably simplest SMB PDU */ 787 787 struct { ··· 2406 2406 __le64 cifs_uid; /* or gid */ 2407 2407 } __attribute__((packed)); 2408 2408 2409 - struct cifs_posix_acl { /* access conrol list (ACL) */ 2409 + struct cifs_posix_acl { /* access control list (ACL) */ 2410 2410 __le16 version; 2411 2411 __le16 access_entry_count; /* access ACL - count of entries */ 2412 2412 __le16 default_entry_count; /* default ACL - count of entries */
+3 -3
fs/smb/client/cifssmb.c
··· 1215 1215 req->CreateDisposition = cpu_to_le32(disposition); 1216 1216 req->CreateOptions = cpu_to_le32(create_options & CREATE_OPTIONS_MASK); 1217 1217 1218 - /* BB Expirement with various impersonation levels and verify */ 1218 + /* BB Experiment with various impersonation levels and verify */ 1219 1219 req->ImpersonationLevel = cpu_to_le32(SECURITY_IMPERSONATION); 1220 1220 req->SecurityFlags = SECURITY_CONTEXT_TRACKING|SECURITY_EFFECTIVE_ONLY; 1221 1221 ··· 3018 3018 3019 3019 /** 3020 3020 * posix_acl_to_cifs - convert ACLs from POSIX ACL to cifs format 3021 - * @parm_data: ACLs in cifs format to conver to 3021 + * @parm_data: ACLs in cifs format to convert to 3022 3022 * @acl: ACLs in POSIX ACL format to convert from 3023 3023 * @acl_type: the type of POSIX ACLs stored in @acl 3024 3024 * ··· 3995 3995 name_len = 3996 3996 cifsConvertToUTF16((__le16 *) pSMB->FileName, searchName, 3997 3997 PATH_MAX, nls_codepage, remap); 3998 - /* We can not add the asterik earlier in case 3998 + /* We can not add the asterisk earlier in case 3999 3999 it got remapped to 0xF03A as if it were part of the 4000 4000 directory name instead of a wildcard */ 4001 4001 name_len *= 2;
+1 -1
fs/smb/client/file.c
··· 2502 2502 } 2503 2503 } 2504 2504 } 2505 - /* couldn't find useable FH with same pid, try any available */ 2505 + /* couldn't find usable FH with same pid, try any available */ 2506 2506 if (!any_available) { 2507 2507 any_available = true; 2508 2508 goto refind_writable;
+1 -1
fs/smb/client/fs_context.h
··· 260 260 unsigned int min_offload; 261 261 unsigned int retrans; 262 262 bool sockopt_tcp_nodelay:1; 263 - /* attribute cache timemout for files and directories in jiffies */ 263 + /* attribute cache timeout for files and directories in jiffies */ 264 264 unsigned long acregmax; 265 265 unsigned long acdirmax; 266 266 /* timeout for deferred close of files in jiffies */
+1 -1
fs/smb/client/misc.c
··· 254 254 } 255 255 256 256 /* NB: MID can not be set if treeCon not passed in, in that 257 - case it is responsbility of caller to set the mid */ 257 + case it is responsibility of caller to set the mid */ 258 258 void 259 259 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , 260 260 const struct cifs_tcon *treeCon, int word_count
+1 -1
fs/smb/client/netmisc.c
··· 1003 1003 year is 2**7, the last year is 1980+127, which means we need only 1004 1004 consider 2 special case years, ie the years 2000 and 2100, and only 1005 1005 adjust for the lack of leap year for the year 2100, as 2000 was a 1006 - leap year (divisable by 400) */ 1006 + leap year (divisible by 400) */ 1007 1007 if (year >= 120) /* the year 2100 */ 1008 1008 days = days - 1; /* do not count leap year for the year 2100 */ 1009 1009
+2 -2
fs/smb/client/readdir.c
··· 553 553 const FIND_FILE_STANDARD_INFO *info) 554 554 { 555 555 de->name = &info->FileName[0]; 556 - /* one byte length, no endianess conversion */ 556 + /* one byte length, no endianness conversion */ 557 557 de->namelen = info->FileNameLength; 558 558 de->resume_key = info->ResumeKey; 559 559 } ··· 815 815 * However, this sequence of ->pos values may have holes 816 816 * in it, for example dot-dirs returned from the server 817 817 * are suppressed. 818 - * Handle this bu forcing ctx->pos to be the same as the 818 + * Handle this by forcing ctx->pos to be the same as the 819 819 * ->pos of the current dirent we emit from the cache. 820 820 * This means that when we emit these entries from the cache 821 821 * we now emit them with the same ->pos value as in the
+2 -2
fs/smb/client/smb2ops.c
··· 2177 2177 NULL, 0 /* no input data */, max_response_size, 2178 2178 (char **)&retbuf, 2179 2179 &ret_data_len); 2180 - cifs_dbg(FYI, "enum snaphots ioctl returned %d and ret buflen is %d\n", 2180 + cifs_dbg(FYI, "enum snapshots ioctl returned %d and ret buflen is %d\n", 2181 2181 rc, ret_data_len); 2182 2182 if (rc) 2183 2183 return rc; ··· 3588 3588 /* 3589 3589 * At this point, we are trying to fallocate an internal 3590 3590 * regions of a sparse file. Since smb2 does not have a 3591 - * fallocate command we have two otions on how to emulate this. 3591 + * fallocate command we have two options on how to emulate this. 3592 3592 * We can either turn the entire file to become non-sparse 3593 3593 * which we only do if the fallocate is for virtually 3594 3594 * the whole file, or we can overwrite the region with zeroes
+2 -2
fs/smb/client/smb2pdu.c
··· 2986 2986 2987 2987 SMB2_close(xid, tcon, rsp->PersistentFileId, rsp->VolatileFileId); 2988 2988 2989 - /* Eventually save off posix specific response info and timestaps */ 2989 + /* Eventually save off posix specific response info and timestamps */ 2990 2990 2991 2991 err_free_rsp_buf: 2992 2992 free_rsp_buf(resp_buftype, rsp); ··· 4581 4581 } 4582 4582 #ifdef CONFIG_CIFS_SMB_DIRECT 4583 4583 /* 4584 - * If this rdata has a memmory registered, the MR can be freed 4584 + * If this rdata has a memory registered, the MR can be freed 4585 4585 * MR needs to be freed as soon as I/O finishes to prevent deadlock 4586 4586 * because they have limited number and are used for future I/Os 4587 4587 */
+1 -1
fs/smb/client/smb2transport.c
··· 696 696 shdr->Command); 697 697 698 698 /* 699 - * Save off the origiginal signature so we can modify the smb and check 699 + * Save off the original signature so we can modify the smb and check 700 700 * our calculated signature against what the server sent. 701 701 */ 702 702 memcpy(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE);
+2 -2
fs/smb/client/smbdirect.c
··· 219 219 220 220 case RDMA_CM_EVENT_DEVICE_REMOVAL: 221 221 case RDMA_CM_EVENT_DISCONNECTED: 222 - /* This happenes when we fail the negotiation */ 222 + /* This happens when we fail the negotiation */ 223 223 if (info->transport_status == SMBD_NEGOTIATE_FAILED) { 224 224 info->transport_status = SMBD_DISCONNECTED; 225 225 wake_up(&info->conn_wait); ··· 1344 1344 * are not locked by srv_mutex. It is possible some processes are 1345 1345 * blocked on transport srv_mutex while holding memory registration. 1346 1346 * Release the transport srv_mutex to allow them to hit the failure 1347 - * path when sending data, and then release memory registartions. 1347 + * path when sending data, and then release memory registrations. 1348 1348 */ 1349 1349 log_rdma_event(INFO, "freeing mr list\n"); 1350 1350 wake_up_interruptible_all(&info->wait_mr);
+1 -1
fs/smb/client/smbdirect.h
··· 111 111 /* Used by transport to wait until all MRs are returned */ 112 112 wait_queue_head_t wait_for_mr_cleanup; 113 113 114 - /* Activity accoutning */ 114 + /* Activity accounting */ 115 115 atomic_t send_pending; 116 116 wait_queue_head_t wait_send_pending; 117 117 wait_queue_head_t wait_post_send;