Skip to content

Commit 9e676e5

Browse files
Shen LichuanSteve French
authored andcommitted
ksmbd: 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/common/smb2pdu.h:9: specfication ==> specification fs/smb/common/smb2pdu.h:494: usally ==> usually fs/smb/common/smb2pdu.h:1064: Attrubutes ==> Attributes fs/smb/server/connection.c:28: cleand ==> cleaned fs/smb/server/ksmbd_netlink.h:216: struture ==> structure fs/smb/server/oplock.c:799: conains ==> contains fs/smb/server/oplock.c:1487: containted ==> contained fs/smb/server/server.c:282: proccessing ==> processing fs/smb/server/smb_common.c:491: comforms ==> conforms fs/smb/server/xattr.h:102: ATTRIBUITE ==> ATTRIBUTE Signed-off-by: Shen Lichuan <shenlichuan@vivo.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 8e2f6a0 commit 9e676e5

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

fs/smb/common/smb2pdu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Note that, due to trying to use names similar to the protocol specifications,
77
* there are many mixed case field names in the structures below. Although
88
* this does not match typical Linux kernel style, it is necessary to be
9-
* able to match against the protocol specfication.
9+
* able to match against the protocol specification.
1010
*
1111
* SMB2 commands
1212
* Some commands have minimal (wct=0,bcc=0), or uninteresting, responses
@@ -491,7 +491,7 @@ struct smb2_encryption_neg_context {
491491
__le16 ContextType; /* 2 */
492492
__le16 DataLength;
493493
__le32 Reserved;
494-
/* CipherCount usally 2, but can be 3 when AES256-GCM enabled */
494+
/* CipherCount usually 2, but can be 3 when AES256-GCM enabled */
495495
__le16 CipherCount; /* AES128-GCM and AES128-CCM by default */
496496
__le16 Ciphers[];
497497
} __packed;
@@ -1061,7 +1061,7 @@ struct smb2_server_client_notification {
10611061
#define IL_IMPERSONATION cpu_to_le32(0x00000002)
10621062
#define IL_DELEGATE cpu_to_le32(0x00000003)
10631063

1064-
/* File Attrubutes */
1064+
/* File Attributes */
10651065
#define FILE_ATTRIBUTE_READONLY 0x00000001
10661066
#define FILE_ATTRIBUTE_HIDDEN 0x00000002
10671067
#define FILE_ATTRIBUTE_SYSTEM 0x00000004

fs/smb/server/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DECLARE_RWSEM(conn_list_lock);
2525
/**
2626
* ksmbd_conn_free() - free resources of the connection instance
2727
*
28-
* @conn: connection instance to be cleand up
28+
* @conn: connection instance to be cleaned up
2929
*
3030
* During the thread termination, the corresponding conn instance
3131
* resources(sock/memory) are released and finally the conn object is freed.

fs/smb/server/ksmbd_netlink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ struct ksmbd_tree_connect_response {
213213
};
214214

215215
/*
216-
* IPC Request struture to disconnect tree connection.
216+
* IPC Request structure to disconnect tree connection.
217217
*/
218218
struct ksmbd_tree_disconnect_request {
219219
__u64 session_id; /* session id */

fs/smb/server/oplock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ static void __smb2_lease_break_noti(struct work_struct *wk)
796796
/**
797797
* smb2_lease_break_noti() - break lease when a new client request
798798
* write lease
799-
* @opinfo: conains lease state information
799+
* @opinfo: contains lease state information
800800
*
801801
* Return: 0 on success, otherwise error
802802
*/
@@ -1484,7 +1484,7 @@ void create_lease_buf(u8 *rbuf, struct lease *lease)
14841484
}
14851485

14861486
/**
1487-
* parse_lease_state() - parse lease context containted in file open request
1487+
* parse_lease_state() - parse lease context contained in file open request
14881488
* @open_req: buffer containing smb2 file open(create) request
14891489
*
14901490
* Return: allocated lease context object on success, otherwise NULL

fs/smb/server/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static void handle_ksmbd_work(struct work_struct *wk)
279279

280280
/**
281281
* queue_ksmbd_work() - queue a smb request to worker thread queue
282-
* for proccessing smb command and sending response
282+
* for processing smb command and sending response
283283
* @conn: connection instance
284284
*
285285
* read remaining data from socket create and submit work.

fs/smb/server/smb_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level,
488488
* @shortname: destination short filename
489489
*
490490
* Return: shortname length or 0 when source long name is '.' or '..'
491-
* TODO: Though this function comforms the restriction of 8.3 Filename spec,
491+
* TODO: Though this function conforms the restriction of 8.3 Filename spec,
492492
* but the result is different with Windows 7's one. need to check.
493493
*/
494494
int ksmbd_extract_shortname(struct ksmbd_conn *conn, const char *longname,

fs/smb/server/xattr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct xattr_ntacl {
9999
__u8 posix_acl_hash[XATTR_SD_HASH_SIZE]; /* 64bytes hash for posix acl */
100100
};
101101

102-
/* DOS ATTRIBUITE XATTR PREFIX */
102+
/* DOS ATTRIBUTE XATTR PREFIX */
103103
#define DOS_ATTRIBUTE_PREFIX "DOSATTRIB"
104104
#define DOS_ATTRIBUTE_PREFIX_LEN (sizeof(DOS_ATTRIBUTE_PREFIX) - 1)
105105
#define XATTR_NAME_DOS_ATTRIBUTE (XATTR_USER_PREFIX DOS_ATTRIBUTE_PREFIX)

0 commit comments

Comments
 (0)