]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: fix some typos in mm module
authorjianyun.gao <jianyungao89@gmail.com>
Mon, 29 Sep 2025 00:26:08 +0000 (08:26 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 1 Oct 2025 22:58:45 +0000 (15:58 -0700)
Below are some typos in the code comments:

  intevals ==> intervals
  addesses ==> addresses
  unavaliable ==> unavailable
  facor ==> factor
  droping ==> dropping
  exlusive ==> exclusive
  decription ==> description
  confict ==> conflict
  desriptions ==> descriptions
  otherwize ==> otherwise
  vlaue ==> value
  cheching ==> checking
  exisitng ==> existing
  modifed ==> modified
  differenciate ==> differentiate
  refernece ==> reference
  permissons ==> permissions
  indepdenent ==> independent
  spliting ==> splitting

Just fix it.

Link: https://lkml.kernel.org/r/20250929002608.1633825-1-jianyungao89@gmail.com
Signed-off-by: jianyun.gao <jianyungao89@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Acked-by: Chris Li <chrisl@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
14 files changed:
mm/damon/sysfs.c
mm/gup.c
mm/hugetlb.c
mm/hugetlb_vmemmap.c
mm/kmsan/core.c
mm/ksm.c
mm/memory-tiers.c
mm/memory.c
mm/secretmem.c
mm/slab_common.c
mm/slub.c
mm/swapfile.c
mm/userfaultfd.c
mm/vma.c

index 2fc722f998f89334ee3a73f65ac15e0133a1a267..a212877ed2407a3bc3fe429a3e838bf79f5b69bc 100644 (file)
@@ -1264,7 +1264,7 @@ enum damon_sysfs_cmd {
        DAMON_SYSFS_CMD_UPDATE_SCHEMES_EFFECTIVE_QUOTAS,
        /*
         * @DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS: Update the tuned monitoring
-        * intevals.
+        * intervals.
         */
        DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS,
        /*
index a8ba5112e4d096a3e0111ee04cc9e9699114ab12..d2524fe09338fd56e2229714ffb2c58873dea028 100644 (file)
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -2710,7 +2710,7 @@ EXPORT_SYMBOL(get_user_pages_unlocked);
  *
  *  *) ptes can be read atomically by the architecture.
  *
- *  *) valid user addesses are below TASK_MAX_SIZE
+ *  *) valid user addresses are below TASK_MAX_SIZE
  *
  * The last two assumptions can be relaxed by the addition of helper functions.
  *
index fe6606d91b313f74d06269b59e23ea3183a14643..c07b7192aff2649daf3d36acf7f6aa419c744d34 100644 (file)
@@ -2954,7 +2954,7 @@ typedef enum {
         * NOTE: This is mostly identical to MAP_CHG_NEEDED, except
         * that currently vma_needs_reservation() has an unwanted side
         * effect to either use end() or commit() to complete the
-        * transaction.  Hence it needs to differenciate from NEEDED.
+        * transaction. Hence it needs to differentiate from NEEDED.
         */
        MAP_CHG_ENFORCED = 2,
 } map_chg_state;
@@ -6027,7 +6027,7 @@ void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma,
        /*
         * If we unshared PMDs, the TLB flush was not recorded in mmu_gather. We
         * could defer the flush until now, since by holding i_mmap_rwsem we
-        * guaranteed that the last refernece would not be dropped. But we must
+        * guaranteed that the last reference would not be dropped. But we must
         * do the flushing before we return, as otherwise i_mmap_rwsem will be
         * dropped and the last reference to the shared PMDs page might be
         * dropped as well.
@@ -7213,7 +7213,7 @@ long hugetlb_change_protection(struct vm_area_struct *vma,
                } else if (unlikely(is_pte_marker(pte))) {
                        /*
                         * Do nothing on a poison marker; page is
-                        * corrupted, permissons do not apply.  Here
+                        * corrupted, permissions do not apply. Here
                         * pte_marker_uffd_wp()==true implies !poison
                         * because they're mutual exclusive.
                         */
index ba0fb1b6a5a8eb48ffb8bdc2708111ddc1901985..96ee2bd16ee1536dfdc134c570d35f987732d2b6 100644 (file)
@@ -75,7 +75,7 @@ static int vmemmap_split_pmd(pmd_t *pmd, struct page *head, unsigned long start,
        if (likely(pmd_leaf(*pmd))) {
                /*
                 * Higher order allocations from buddy allocator must be able to
-                * be treated as indepdenent small pages (as they can be freed
+                * be treated as independent small pages (as they can be freed
                 * individually).
                 */
                if (!PageReserved(head))
@@ -684,7 +684,7 @@ static void __hugetlb_vmemmap_optimize_folios(struct hstate *h,
                ret = hugetlb_vmemmap_split_folio(h, folio);
 
                /*
-                * Spliting the PMD requires allocating a page, thus lets fail
+                * Splitting the PMD requires allocating a page, thus let's fail
                 * early once we encounter the first OOM. No point in retrying
                 * as it can be dynamically done on remap with the memory
                 * we get back from the vmemmap deduplication.
@@ -715,7 +715,7 @@ static void __hugetlb_vmemmap_optimize_folios(struct hstate *h,
                /*
                 * Pages to be freed may have been accumulated.  If we
                 * encounter an ENOMEM,  free what we have and try again.
-                * This can occur in the case that both spliting fails
+                * This can occur in the case that both splitting fails
                 * halfway and head page allocation also failed. In this
                 * case __hugetlb_vmemmap_optimize_folio() would free memory
                 * allowing more vmemmap remaps to occur.
index 8bca7fece47f0e1eb947d709b1204baad14f1ea7..bd612e5aa7b492bea26f3901ac5d1e202cbfb0db 100644 (file)
@@ -33,7 +33,7 @@ bool kmsan_enabled __read_mostly;
 
 /*
  * Per-CPU KMSAN context to be used in interrupts, where current->kmsan is
- * unavaliable.
+ * unavailable.
  */
 DEFINE_PER_CPU(struct kmsan_ctx, kmsan_percpu_ctx);
 
index 7bc726b50b2f8c917611ff9f4a41e4611595922d..1a5c897b40b191d612f4261453f287901ad51279 100644 (file)
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -389,7 +389,7 @@ static unsigned long ewma(unsigned long prev, unsigned long curr)
  * exponentially weighted moving average. The new pages_to_scan value is
  * multiplied with that change factor:
  *
- *      new_pages_to_scan *= change facor
+ *      new_pages_to_scan *= change factor
  *
  * The new_pages_to_scan value is limited by the cpu min and max values. It
  * calculates the cpu percent for the last scan and calculates the new
index 0ea5c13f10a2333de274ab5f0d45e4bf97019924..864811fff4093f664b9f48affbbc80c3410b4dfd 100644 (file)
@@ -519,7 +519,7 @@ static inline void __init_node_memory_type(int node, struct memory_dev_type *mem
         * for each device getting added in the same NUMA node
         * with this specific memtype, bump the map count. We
         * Only take memtype device reference once, so that
-        * changing a node memtype can be done by droping the
+        * changing a node memtype can be done by dropping the
         * only reference count taken here.
         */
 
index 7e32eb79ba99792f0200fd12dfbaf136798fa8c6..d350c7a6301b2a1205d210266c21a0ef18f65226 100644 (file)
@@ -4371,7 +4371,7 @@ static inline bool should_try_to_free_swap(struct folio *folio,
         * If we want to map a page that's in the swapcache writable, we
         * have to detect via the refcount if we're really the exclusive
         * user. Try freeing the swapcache to get rid of the swapcache
-        * reference only in case it's likely that we'll be the exlusive user.
+        * reference only in case it's likely that we'll be the exclusive user.
         */
        return (fault_flags & FAULT_FLAG_WRITE) && !folio_test_ksm(folio) &&
                folio_ref_count(folio) == (1 + folio_nr_pages(folio));
@@ -5448,7 +5448,7 @@ vm_fault_t do_set_pmd(struct vm_fault *vmf, struct folio *folio, struct page *pa
 
 /**
  * set_pte_range - Set a range of PTEs to point to pages in a folio.
- * @vmf: Fault decription.
+ * @vmf: Fault description.
  * @folio: The folio that contains @page.
  * @page: The first page to create a PTE for.
  * @nr: The number of PTEs to create.
index 62066ddb1e9c521271e5f7fdf266ad1c623c79aa..c1bd9a4b663dcab1edff46ce6458313e558ad6d0 100644 (file)
@@ -227,7 +227,7 @@ SYSCALL_DEFINE1(memfd_secret, unsigned int, flags)
        struct file *file;
        int fd, err;
 
-       /* make sure local flags do not confict with global fcntl.h */
+       /* make sure local flags do not conflict with global fcntl.h */
        BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC);
 
        if (!secretmem_enable || !can_set_direct_map())
index bfe7c40eeee1a01c175766935c1e3c0304434a53..9ab1161564449856505829695357e51254f59855 100644 (file)
@@ -256,7 +256,7 @@ out:
  * @object_size: The size of objects to be created in this cache.
  * @args: Additional arguments for the cache creation (see
  *        &struct kmem_cache_args).
- * @flags: See the desriptions of individual flags. The common ones are listed
+ * @flags: See the descriptions of individual flags. The common ones are listed
  *         in the description below.
  *
  * Not to be called directly, use the kmem_cache_create() wrapper with the same
index 9d73cca9f1de8b0235f78a4cdd7b6356920d74a5..08a4e482192b583182514d52f07071f3fa663fe5 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2409,7 +2409,7 @@ bool slab_free_hook(struct kmem_cache *s, void *x, bool init,
                memset((char *)kasan_reset_tag(x) + inuse, 0,
                       s->size - inuse - rsize);
                /*
-                * Restore orig_size, otherwize kmalloc redzone overwritten
+                * Restore orig_size, otherwise kmalloc redzone overwritten
                 * would be reported
                 */
                set_orig_size(s, x, orig_size);
index 10760240a3a29fbafda2893307698e1f6fb52713..cb2392ed8e0ebe83808a54510f434e3801716407 100644 (file)
@@ -1677,7 +1677,7 @@ static bool swap_entries_put_map_nr(struct swap_info_struct *si,
 
 /*
  * Check if it's the last ref of swap entry in the freeing path.
- * Qualified vlaue includes 1, SWAP_HAS_CACHE or SWAP_MAP_SHMEM.
+ * Qualified value includes 1, SWAP_HAS_CACHE or SWAP_MAP_SHMEM.
  */
 static inline bool __maybe_unused swap_is_last_ref(unsigned char count)
 {
index af61b95c89e4ecb5bfb757d0fbe5d859918a8cce..0630f188c847c3d34b3680d81f18fdab4bcb0e80 100644 (file)
@@ -1578,7 +1578,7 @@ static int validate_move_areas(struct userfaultfd_ctx *ctx,
 
        /*
         * For now, we keep it simple and only move between writable VMAs.
-        * Access flags are equal, therefore cheching only the source is enough.
+        * Access flags are equal, therefore checking only the source is enough.
         */
        if (!(src_vma->vm_flags & VM_WRITE))
                return -EINVAL;
index a1ec405bda254ecf2d457e2c7aeabfcdf61a36c0..a2e1ae95466252f0029594bb045f858bc8f85b1d 100644 (file)
--- a/mm/vma.c
+++ b/mm/vma.c
@@ -109,7 +109,7 @@ static inline bool is_mergeable_vma(struct vma_merge_struct *vmg, bool merge_nex
 static bool is_mergeable_anon_vma(struct vma_merge_struct *vmg, bool merge_next)
 {
        struct vm_area_struct *tgt = merge_next ? vmg->next : vmg->prev;
-       struct vm_area_struct *src = vmg->middle; /* exisitng merge case. */
+       struct vm_area_struct *src = vmg->middle; /* existing merge case. */
        struct anon_vma *tgt_anon = tgt->anon_vma;
        struct anon_vma *src_anon = vmg->anon_vma;
 
@@ -798,7 +798,7 @@ static bool can_merge_remove_vma(struct vm_area_struct *vma)
  * Returns: The merged VMA if merge succeeds, or NULL otherwise.
  *
  * ASSUMPTIONS:
- * - The caller must assign the VMA to be modifed to @vmg->middle.
+ * - The caller must assign the VMA to be modified to @vmg->middle.
  * - The caller must have set @vmg->prev to the previous VMA, if there is one.
  * - The caller must not set @vmg->next, as we determine this.
  * - The caller must hold a WRITE lock on the mm_struct->mmap_lock.