Skip to content

Commit e9f49fe

Browse files
Shen Lichuansmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent a421e3f commit e9f49fe

File tree

16 files changed

+24
-24
lines changed

16 files changed

+24
-24
lines changed

fs/smb/client/cifsacl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct smb3_sd {
5555
#define ACL_CONTROL_SI 0x0800 /* SACL Auto-Inherited */
5656
#define ACL_CONTROL_DI 0x0400 /* DACL Auto-Inherited */
5757
#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 */
5959
#define ACL_CONTROL_SS 0x0080 /* Create server ACL */
6060
#define ACL_CONTROL_DT 0x0040 /* DACL provided by trusted source */
6161
#define ACL_CONTROL_SD 0x0020 /* SACL defaulted */

fs/smb/client/cifsencrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ int cifs_verify_signature(struct smb_rqst *rqst,
239239
cifs_dbg(FYI, "dummy signature received for smb command 0x%x\n",
240240
cifs_pdu->Command);
241241

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
243243
its signature against what the server sent */
244244
memcpy(server_response_sig, cifs_pdu->Signature.SecuritySignature, 8);
245245

fs/smb/client/cifsfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ __u32 cifs_lock_secret;
161161

162162
/*
163163
* 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
165165
* already held, e.g. in open-type syscalls context. Otherwise it can race with
166166
* atomic_dec_and_test in deactivate_locked_super.
167167
*/
@@ -289,7 +289,7 @@ static void cifs_kill_sb(struct super_block *sb)
289289
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
290290

291291
/*
292-
* We ned to release all dentries for the cached directories
292+
* We need to release all dentries for the cached directories
293293
* before we kill the sb.
294294
*/
295295
if (cifs_sb->root) {

fs/smb/client/cifsglob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ struct TCP_Server_Info {
775775
} compression;
776776
__u16 signing_algorithm;
777777
__le16 cipher_type;
778-
/* save initital negprot hash */
778+
/* save initial negprot hash */
779779
__u8 preauth_sha_hash[SMB2_PREAUTH_HASH_SIZE];
780780
bool signing_negotiated; /* true if valid signing context rcvd from server */
781781
bool posix_ext_supported;

fs/smb/client/cifspdu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ typedef struct smb_com_logoff_andx_rsp {
781781
__u16 ByteCount;
782782
} __attribute__((packed)) LOGOFF_ANDX_RSP;
783783

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
785785
tree_connect PDU to effect disconnect */
786786
/* tdis is probably simplest SMB PDU */
787787
struct {
@@ -2406,7 +2406,7 @@ struct cifs_posix_ace { /* access control entry (ACE) */
24062406
__le64 cifs_uid; /* or gid */
24072407
} __attribute__((packed));
24082408

2409-
struct cifs_posix_acl { /* access conrol list (ACL) */
2409+
struct cifs_posix_acl { /* access control list (ACL) */
24102410
__le16 version;
24112411
__le16 access_entry_count; /* access ACL - count of entries */
24122412
__le16 default_entry_count; /* default ACL - count of entries */

fs/smb/client/cifssmb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock,
12151215
req->CreateDisposition = cpu_to_le32(disposition);
12161216
req->CreateOptions = cpu_to_le32(create_options & CREATE_OPTIONS_MASK);
12171217

1218-
/* BB Expirement with various impersonation levels and verify */
1218+
/* BB Experiment with various impersonation levels and verify */
12191219
req->ImpersonationLevel = cpu_to_le32(SECURITY_IMPERSONATION);
12201220
req->SecurityFlags = SECURITY_CONTEXT_TRACKING|SECURITY_EFFECTIVE_ONLY;
12211221

@@ -3018,7 +3018,7 @@ static void cifs_init_ace(struct cifs_posix_ace *cifs_ace,
30183018

30193019
/**
30203020
* 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
30223022
* @acl: ACLs in POSIX ACL format to convert from
30233023
* @acl_type: the type of POSIX ACLs stored in @acl
30243024
*
@@ -3995,7 +3995,7 @@ CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
39953995
name_len =
39963996
cifsConvertToUTF16((__le16 *) pSMB->FileName, searchName,
39973997
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
39993999
it got remapped to 0xF03A as if it were part of the
40004000
directory name instead of a wildcard */
40014001
name_len *= 2;

fs/smb/client/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, int flags,
25022502
}
25032503
}
25042504
}
2505-
/* couldn't find useable FH with same pid, try any available */
2505+
/* couldn't find usable FH with same pid, try any available */
25062506
if (!any_available) {
25072507
any_available = true;
25082508
goto refind_writable;

fs/smb/client/fs_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ struct smb3_fs_context {
260260
unsigned int min_offload;
261261
unsigned int retrans;
262262
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 */
264264
unsigned long acregmax;
265265
unsigned long acdirmax;
266266
/* timeout for deferred close of files in jiffies */

fs/smb/client/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ free_rsp_buf(int resp_buftype, void *rsp)
254254
}
255255

256256
/* 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 */
258258
void
259259
header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
260260
const struct cifs_tcon *treeCon, int word_count

fs/smb/client/netmisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ struct timespec64 cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset)
10031003
year is 2**7, the last year is 1980+127, which means we need only
10041004
consider 2 special case years, ie the years 2000 and 2100, and only
10051005
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) */
10071007
if (year >= 120) /* the year 2100 */
10081008
days = days - 1; /* do not count leap year for the year 2100 */
10091009

0 commit comments

Comments
 (0)