Skip to content

Commit f8d6e74

Browse files
Dawei Lismfrench
authored andcommitted
ksmbd: fix typo, syncronous->synchronous
syncronous->synchronous Signed-off-by: Dawei Li <set_pte_at@outlook.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent b685757 commit f8d6e74

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

fs/ksmbd/connection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void ksmbd_conn_enqueue_request(struct ksmbd_work *work)
114114

115115
if (conn->ops->get_cmd_val(work) != SMB2_CANCEL_HE) {
116116
requests_queue = &conn->requests;
117-
work->syncronous = true;
117+
work->synchronous = true;
118118
}
119119

120120
if (requests_queue) {
@@ -139,7 +139,7 @@ int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work)
139139
spin_lock(&conn->request_lock);
140140
if (!work->multiRsp) {
141141
list_del_init(&work->request_entry);
142-
if (work->syncronous == false)
142+
if (!work->synchronous)
143143
list_del_init(&work->async_request_entry);
144144
ret = 0;
145145
}

fs/ksmbd/ksmbd_work.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct ksmbd_work {
6868
/* Request is encrypted */
6969
bool encrypted:1;
7070
/* Is this SYNC or ASYNC ksmbd_work */
71-
bool syncronous:1;
71+
bool synchronous:1;
7272
bool need_invalidate_rkey:1;
7373

7474
unsigned int remote_key;

fs/ksmbd/smb2pdu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ int init_smb2_rsp_hdr(struct ksmbd_work *work)
498498
rsp_hdr->SessionId = rcv_hdr->SessionId;
499499
memcpy(rsp_hdr->Signature, rcv_hdr->Signature, 16);
500500

501-
work->syncronous = true;
501+
work->synchronous = true;
502502
if (work->async_id) {
503503
ksmbd_release_id(&conn->async_ida, work->async_id);
504504
work->async_id = 0;
@@ -644,7 +644,7 @@ int setup_async_work(struct ksmbd_work *work, void (*fn)(void **), void **arg)
644644
pr_err("Failed to alloc async message id\n");
645645
return id;
646646
}
647-
work->syncronous = false;
647+
work->synchronous = false;
648648
work->async_id = id;
649649
rsp_hdr->Id.AsyncId = cpu_to_le64(id);
650650

0 commit comments

Comments
 (0)