]> granicus.if.org Git - zfs/commitdiff
Fix typos in module/
authorAndrea Gelmini <andrea.gelmini@gelma.net>
Fri, 30 Aug 2019 21:32:18 +0000 (23:32 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Aug 2019 21:32:18 +0000 (14:32 -0700)
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Closes #9241

module/avl/avl.c
module/lua/llimits.h
module/nvpair/nvpair.c
module/spl/spl-condvar.c
module/spl/spl-generic.c
module/spl/spl-kmem-cache.c
module/spl/spl-tsd.c
module/zcommon/zfeature_common.c
module/zcommon/zfs_namecheck.c
module/zcommon/zpool_prop.c

index 736dcee84579826c1468518b403b48ca0f2acc55..1d2843f0e71676efe01443322e5b59be55775b50 100644 (file)
@@ -159,7 +159,7 @@ avl_walk(avl_tree_t *tree, void     *oldnode, int left)
                    node = node->avl_child[right])
                        ;
        /*
-        * Otherwise, return thru left children as far as we can.
+        * Otherwise, return through left children as far as we can.
         */
        } else {
                for (;;) {
index eee8f0c2d53870d6b82649f9bb5e1f5f6db1f1b2..2126a14648dca05136897585210d8084161ac6f1 100644 (file)
@@ -98,7 +98,7 @@ typedef LUAI_UACNUMBER l_uacNumber;
 /*
 ** non-return type
 **
-** Supress noreturn attribute in kernel builds to avoid objtool check warnings
+** Suppress noreturn attribute in kernel builds to avoid objtool check warnings
 */
 #if defined(__GNUC__) && !defined(_KERNEL)
 #define l_noret                void __attribute__((noreturn))
index 5f6423ccce736ee8b017d88c2ccc8bac25bbbbc3..c5bd98ebd055b959e74b79071078515e5dcd06fc 100644 (file)
@@ -1872,7 +1872,7 @@ nvlist_lookup_pairs(nvlist_t *nvl, int flag, ...)
  * (given 'ret' is non-NULL). If 'sep' is specified then 'name' will penitrate
  * multiple levels of embedded nvlists, with 'sep' as the separator. As an
  * example, if sep is '.', name might look like: "a" or "a.b" or "a.c[3]" or
- * "a.d[3].e[1]".  This matches the C syntax for array embed (for convience,
+ * "a.d[3].e[1]".  This matches the C syntax for array embed (for convenience,
  * code also supports "a.d[3]e[1]" syntax).
  *
  * If 'ip' is non-NULL and the last name component is an array, return the
@@ -3105,7 +3105,7 @@ nvs_native(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen)
  *
  * An xdr packed nvlist is encoded as:
  *
- *  - encoding methode and host endian (4 bytes)
+ *  - encoding method and host endian (4 bytes)
  *  - nvl_version (4 bytes)
  *  - nvl_nvflag (4 bytes)
  *
@@ -3499,7 +3499,7 @@ nvs_xdr_nvp_size(nvstream_t *nvs, nvpair_t *nvp, size_t *size)
  * the strings.  These pointers are not encoded into the packed xdr buffer.
  *
  * If the data is of type DATA_TYPE_STRING_ARRAY and all the strings are
- * of length 0, then each string is endcoded in xdr format as a single word.
+ * of length 0, then each string is encoded in xdr format as a single word.
  * Therefore when expanded to an nvpair there will be 2.25 word used for
  * each string.  (a int64_t allocated for pointer usage, and a single char
  * for the null termination.)
index 664fae1e7199a72f40ddae3709032bae0edd78e3..3cc33da6298ac3188806f7f950e8fb23d3d54946 100644 (file)
@@ -431,8 +431,8 @@ __cv_signal(kcondvar_t *cvp)
 
        /*
         * All waiters are added with WQ_FLAG_EXCLUSIVE so only one
-        * waiter will be set runable with each call to wake_up().
-        * Additionally wake_up() holds a spin_lock assoicated with
+        * waiter will be set runnable with each call to wake_up().
+        * Additionally wake_up() holds a spin_lock associated with
         * the wait queue to ensure we don't race waking up processes.
         */
        if (atomic_read(&cvp->cv_waiters) > 0)
index 3c5ef60bd1a48e50ef2841b091f2f08a5efd062f..1deb2f444cd11a88dd3420b2720e63000ce8bf27 100644 (file)
@@ -79,7 +79,7 @@ EXPORT_SYMBOL(p0);
  * to generate words larger than 128 bits will paradoxically be limited to
  * `2^128 - 1` possibilities. This is because we have a sequence of `2^128 - 1`
  * 128-bit words and selecting the first will implicitly select the second. If
- * a caller finds this behavior undesireable, random_get_bytes() should be used
+ * a caller finds this behavior undesirable, random_get_bytes() should be used
  * instead.
  *
  * XXX: Linux interrupt handlers that trigger within the critical section
@@ -207,7 +207,7 @@ nlz64(uint64_t x)
 
 /*
  * Newer kernels have a div_u64() function but we define our own
- * to simplify portibility between kernel versions.
+ * to simplify portability between kernel versions.
  */
 static inline uint64_t
 __div_u64(uint64_t u, uint32_t v)
index 44e112cccbd970d7ef4fd4b57f27d06181121d5f..b39867b0374144727c5e2540c923dc10781f89c7 100644 (file)
@@ -185,7 +185,7 @@ MODULE_PARM_DESC(spl_kmem_cache_kmem_threads,
 
 struct list_head spl_kmem_cache_list;   /* List of caches */
 struct rw_semaphore spl_kmem_cache_sem; /* Cache list lock */
-taskq_t *spl_kmem_cache_taskq;         /* Task queue for ageing / reclaim */
+taskq_t *spl_kmem_cache_taskq;         /* Task queue for aging / reclaim */
 
 static void spl_cache_shrink(spl_kmem_cache_t *skc, void *obj);
 
@@ -995,7 +995,7 @@ spl_kmem_cache_create(char *name, size_t size, size_t align,
 #if defined(SLAB_USERCOPY)
                /*
                 * Required for PAX-enabled kernels if the slab is to be
-                * used for coping between user and kernel space.
+                * used for copying between user and kernel space.
                 */
                slabflags |= SLAB_USERCOPY;
 #endif
index 4c800292ae776be19b57602156654b06768fdc3b..14342d5a618b39915124318688e34c8a03a89920 100644 (file)
@@ -42,7 +42,7 @@
  *  type is entry is called a 'key' entry and it is added to the hash during
  *  tsd_create().  It is used to store the address of the destructor function
  *  and it is used as an anchor point.  All tsd entries which use the same
- *  key will be linked to this entry.  This is used during tsd_destory() to
+ *  key will be linked to this entry.  This is used during tsd_destroy() to
  *  quickly call the destructor function for all tsd associated with the key.
  *  The 'key' entry may be looked up with tsd_hash_search() by passing the
  *  key you wish to lookup and DTOR_PID constant as the pid.
@@ -269,7 +269,7 @@ tsd_hash_add_key(tsd_hash_table_t *table, uint_t *keyp, dtor_func_t dtor)
  * @table: hash table
  * @pid: search pid
  *
- * For every process these is a single entry in the hash which is used
+ * For every process there is a single entry in the hash which is used
  * as anchor.  All other thread specific entries for this process are
  * linked to this anchor via the 'he_pid_list' list head.
  */
index 8e1aef5daa7778278fc3a95ec59c90217b543b84..e5a1aff9cea85f11728b6f2647049a90d46bec75 100644 (file)
@@ -551,7 +551,7 @@ zpool_feature_init(void)
 
        zfeature_register(SPA_FEATURE_RESILVER_DEFER,
            "com.datto:resilver_defer", "resilver_defer",
-           "Support for defering new resilvers when one is already running.",
+           "Support for deferring new resilvers when one is already running.",
            ZFEATURE_FLAG_READONLY_COMPAT, ZFEATURE_TYPE_BOOLEAN, NULL);
 }
 
index 285f8b644ea89b547f9a5def4ac0fb0cd7c5f2f7..1649fd5455b2ba1a9fc3c054c87395de8104dd51 100644 (file)
@@ -74,7 +74,7 @@ get_dataset_depth(const char *path)
 
        /*
         * Keep track of nesting until you hit the end of the
-        * path or found the snapshot/bookmark seperator.
+        * path or found the snapshot/bookmark separator.
         */
        for (int i = 0; loc[i] != '\0' &&
            loc[i] != '@' &&
index 539de5645f81086911fd53a15b553743f80f548a..155d557f464aaf38673d43ab593a0a7f5206893a 100644 (file)
@@ -156,7 +156,7 @@ zpool_name_to_prop(const char *propname)
 
 /*
  * Given a pool property ID, returns the corresponding name.
- * Assuming the pool propety ID is valid.
+ * Assuming the pool property ID is valid.
  */
 const char *
 zpool_prop_to_name(zpool_prop_t prop)