Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: fix some typos in mm module

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>

authored by

jianyun.gao and committed by
Andrew Morton
b6c46600 37d17925

+20 -20
+1 -1
mm/damon/sysfs.c
··· 1264 1264 DAMON_SYSFS_CMD_UPDATE_SCHEMES_EFFECTIVE_QUOTAS, 1265 1265 /* 1266 1266 * @DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS: Update the tuned monitoring 1267 - * intevals. 1267 + * intervals. 1268 1268 */ 1269 1269 DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS, 1270 1270 /*
+1 -1
mm/gup.c
··· 2710 2710 * 2711 2711 * *) ptes can be read atomically by the architecture. 2712 2712 * 2713 - * *) valid user addesses are below TASK_MAX_SIZE 2713 + * *) valid user addresses are below TASK_MAX_SIZE 2714 2714 * 2715 2715 * The last two assumptions can be relaxed by the addition of helper functions. 2716 2716 *
+3 -3
mm/hugetlb.c
··· 2934 2934 * NOTE: This is mostly identical to MAP_CHG_NEEDED, except 2935 2935 * that currently vma_needs_reservation() has an unwanted side 2936 2936 * effect to either use end() or commit() to complete the 2937 - * transaction. Hence it needs to differenciate from NEEDED. 2937 + * transaction. Hence it needs to differentiate from NEEDED. 2938 2938 */ 2939 2939 MAP_CHG_ENFORCED = 2, 2940 2940 } map_chg_state; ··· 6007 6007 /* 6008 6008 * If we unshared PMDs, the TLB flush was not recorded in mmu_gather. We 6009 6009 * could defer the flush until now, since by holding i_mmap_rwsem we 6010 - * guaranteed that the last refernece would not be dropped. But we must 6010 + * guaranteed that the last reference would not be dropped. But we must 6011 6011 * do the flushing before we return, as otherwise i_mmap_rwsem will be 6012 6012 * dropped and the last reference to the shared PMDs page might be 6013 6013 * dropped as well. ··· 7193 7193 } else if (unlikely(is_pte_marker(pte))) { 7194 7194 /* 7195 7195 * Do nothing on a poison marker; page is 7196 - * corrupted, permissons do not apply. Here 7196 + * corrupted, permissions do not apply. Here 7197 7197 * pte_marker_uffd_wp()==true implies !poison 7198 7198 * because they're mutual exclusive. 7199 7199 */
+3 -3
mm/hugetlb_vmemmap.c
··· 75 75 if (likely(pmd_leaf(*pmd))) { 76 76 /* 77 77 * Higher order allocations from buddy allocator must be able to 78 - * be treated as indepdenent small pages (as they can be freed 78 + * be treated as independent small pages (as they can be freed 79 79 * individually). 80 80 */ 81 81 if (!PageReserved(head)) ··· 684 684 ret = hugetlb_vmemmap_split_folio(h, folio); 685 685 686 686 /* 687 - * Spliting the PMD requires allocating a page, thus lets fail 687 + * Splitting the PMD requires allocating a page, thus let's fail 688 688 * early once we encounter the first OOM. No point in retrying 689 689 * as it can be dynamically done on remap with the memory 690 690 * we get back from the vmemmap deduplication. ··· 715 715 /* 716 716 * Pages to be freed may have been accumulated. If we 717 717 * encounter an ENOMEM, free what we have and try again. 718 - * This can occur in the case that both spliting fails 718 + * This can occur in the case that both splitting fails 719 719 * halfway and head page allocation also failed. In this 720 720 * case __hugetlb_vmemmap_optimize_folio() would free memory 721 721 * allowing more vmemmap remaps to occur.
+1 -1
mm/kmsan/core.c
··· 33 33 34 34 /* 35 35 * Per-CPU KMSAN context to be used in interrupts, where current->kmsan is 36 - * unavaliable. 36 + * unavailable. 37 37 */ 38 38 DEFINE_PER_CPU(struct kmsan_ctx, kmsan_percpu_ctx); 39 39
+1 -1
mm/ksm.c
··· 389 389 * exponentially weighted moving average. The new pages_to_scan value is 390 390 * multiplied with that change factor: 391 391 * 392 - * new_pages_to_scan *= change facor 392 + * new_pages_to_scan *= change factor 393 393 * 394 394 * The new_pages_to_scan value is limited by the cpu min and max values. It 395 395 * calculates the cpu percent for the last scan and calculates the new
+1 -1
mm/memory-tiers.c
··· 519 519 * for each device getting added in the same NUMA node 520 520 * with this specific memtype, bump the map count. We 521 521 * Only take memtype device reference once, so that 522 - * changing a node memtype can be done by droping the 522 + * changing a node memtype can be done by dropping the 523 523 * only reference count taken here. 524 524 */ 525 525
+2 -2
mm/memory.c
··· 4328 4328 * If we want to map a page that's in the swapcache writable, we 4329 4329 * have to detect via the refcount if we're really the exclusive 4330 4330 * user. Try freeing the swapcache to get rid of the swapcache 4331 - * reference only in case it's likely that we'll be the exlusive user. 4331 + * reference only in case it's likely that we'll be the exclusive user. 4332 4332 */ 4333 4333 return (fault_flags & FAULT_FLAG_WRITE) && !folio_test_ksm(folio) && 4334 4334 folio_ref_count(folio) == (1 + folio_nr_pages(folio)); ··· 5405 5405 5406 5406 /** 5407 5407 * set_pte_range - Set a range of PTEs to point to pages in a folio. 5408 - * @vmf: Fault decription. 5408 + * @vmf: Fault description. 5409 5409 * @folio: The folio that contains @page. 5410 5410 * @page: The first page to create a PTE for. 5411 5411 * @nr: The number of PTEs to create.
+1 -1
mm/secretmem.c
··· 227 227 struct file *file; 228 228 int fd, err; 229 229 230 - /* make sure local flags do not confict with global fcntl.h */ 230 + /* make sure local flags do not conflict with global fcntl.h */ 231 231 BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC); 232 232 233 233 if (!secretmem_enable || !can_set_direct_map())
+1 -1
mm/slab_common.c
··· 259 259 * @object_size: The size of objects to be created in this cache. 260 260 * @args: Additional arguments for the cache creation (see 261 261 * &struct kmem_cache_args). 262 - * @flags: See the desriptions of individual flags. The common ones are listed 262 + * @flags: See the descriptions of individual flags. The common ones are listed 263 263 * in the description below. 264 264 * 265 265 * Not to be called directly, use the kmem_cache_create() wrapper with the same
+1 -1
mm/slub.c
··· 2533 2533 memset((char *)kasan_reset_tag(x) + inuse, 0, 2534 2534 s->size - inuse - rsize); 2535 2535 /* 2536 - * Restore orig_size, otherwize kmalloc redzone overwritten 2536 + * Restore orig_size, otherwise kmalloc redzone overwritten 2537 2537 * would be reported 2538 2538 */ 2539 2539 set_orig_size(s, x, orig_size);
+1 -1
mm/swapfile.c
··· 1677 1677 1678 1678 /* 1679 1679 * Check if it's the last ref of swap entry in the freeing path. 1680 - * Qualified vlaue includes 1, SWAP_HAS_CACHE or SWAP_MAP_SHMEM. 1680 + * Qualified value includes 1, SWAP_HAS_CACHE or SWAP_MAP_SHMEM. 1681 1681 */ 1682 1682 static inline bool __maybe_unused swap_is_last_ref(unsigned char count) 1683 1683 {
+1 -1
mm/userfaultfd.c
··· 1578 1578 1579 1579 /* 1580 1580 * For now, we keep it simple and only move between writable VMAs. 1581 - * Access flags are equal, therefore cheching only the source is enough. 1581 + * Access flags are equal, therefore checking only the source is enough. 1582 1582 */ 1583 1583 if (!(src_vma->vm_flags & VM_WRITE)) 1584 1584 return -EINVAL;
+2 -2
mm/vma.c
··· 109 109 static bool is_mergeable_anon_vma(struct vma_merge_struct *vmg, bool merge_next) 110 110 { 111 111 struct vm_area_struct *tgt = merge_next ? vmg->next : vmg->prev; 112 - struct vm_area_struct *src = vmg->middle; /* exisitng merge case. */ 112 + struct vm_area_struct *src = vmg->middle; /* existing merge case. */ 113 113 struct anon_vma *tgt_anon = tgt->anon_vma; 114 114 struct anon_vma *src_anon = vmg->anon_vma; 115 115 ··· 798 798 * Returns: The merged VMA if merge succeeds, or NULL otherwise. 799 799 * 800 800 * ASSUMPTIONS: 801 - * - The caller must assign the VMA to be modifed to @vmg->middle. 801 + * - The caller must assign the VMA to be modified to @vmg->middle. 802 802 * - The caller must have set @vmg->prev to the previous VMA, if there is one. 803 803 * - The caller must not set @vmg->next, as we determine this. 804 804 * - The caller must hold a WRITE lock on the mm_struct->mmap_lock.