libceph: fix some spelling mistakes
authorZheng Yongjun <zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 06:56:35 +0000 (14:56 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 28 Jun 2021 21:49:25 +0000 (23:49 +0200)
Fix some spelling mistakes in comments:

- enconding ==> encoding
- ambigous ==> ambiguous
- orignal ==> original
- encyption ==> encryption

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/auth_x_protocol.h
net/ceph/mon_client.c
net/ceph/osdmap.c

index 792fcb9..9c60fee 100644 (file)
@@ -87,7 +87,7 @@ struct ceph_x_authorize_reply {
 
 
 /*
- * encyption bundle
+ * encryption bundle
  */
 #define CEPHX_ENC_MAGIC 0xff009cad8826aa55ull
 
index 195ceb8..013cbdb 100644 (file)
@@ -1508,7 +1508,7 @@ static struct ceph_msg *mon_alloc_msg(struct ceph_connection *con,
                        return get_generic_reply(con, hdr, skip);
 
                /*
-                * Older OSDs don't set reply tid even if the orignal
+                * Older OSDs don't set reply tid even if the original
                 * request had a non-zero tid.  Work around this weirdness
                 * by allocating a new message.
                 */
index c959320..75b7380 100644 (file)
@@ -1309,7 +1309,7 @@ static int get_osdmap_client_data_v(void **p, void *end,
                        return -EINVAL;
                }
 
-               /* old osdmap enconding */
+               /* old osdmap encoding */
                struct_v = 0;
        }
 
@@ -3010,7 +3010,7 @@ static bool is_valid_crush_name(const char *name)
  * parent, returns 0.
  *
  * Does a linear search, as there are no parent pointers of any
- * kind.  Note that the result is ambigous for items that occur
+ * kind.  Note that the result is ambiguous for items that occur
  * multiple times in the map.
  */
 static int get_immediate_parent(struct crush_map *c, int id,