Skip to content

Commit 918ba22

Browse files
jianyun.gaogregkh
authored andcommitted
mm: fix some typos in mm module
[ Upstream commit b6c4660 ] 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> Stable-dep-of: 3937027 ("mm/hugetlb: fix two comments related to huge_pmd_unshare()") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 908795c commit 918ba22

14 files changed

Lines changed: 20 additions & 20 deletions

File tree

mm/damon/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ enum damon_sysfs_cmd {
12671267
DAMON_SYSFS_CMD_UPDATE_SCHEMES_EFFECTIVE_QUOTAS,
12681268
/*
12691269
* @DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS: Update the tuned monitoring
1270-
* intevals.
1270+
* intervals.
12711271
*/
12721272
DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS,
12731273
/*

mm/gup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ EXPORT_SYMBOL(get_user_pages_unlocked);
27102710
*
27112711
* *) ptes can be read atomically by the architecture.
27122712
*
2713-
* *) valid user addesses are below TASK_MAX_SIZE
2713+
* *) valid user addresses are below TASK_MAX_SIZE
27142714
*
27152715
* The last two assumptions can be relaxed by the addition of helper functions.
27162716
*

mm/hugetlb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2934,7 +2934,7 @@ typedef enum {
29342934
* NOTE: This is mostly identical to MAP_CHG_NEEDED, except
29352935
* that currently vma_needs_reservation() has an unwanted side
29362936
* 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.
29382938
*/
29392939
MAP_CHG_ENFORCED = 2,
29402940
} map_chg_state;
@@ -6007,7 +6007,7 @@ void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma,
60076007
/*
60086008
* If we unshared PMDs, the TLB flush was not recorded in mmu_gather. We
60096009
* 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
60116011
* do the flushing before we return, as otherwise i_mmap_rwsem will be
60126012
* dropped and the last reference to the shared PMDs page might be
60136013
* dropped as well.
@@ -7193,7 +7193,7 @@ long hugetlb_change_protection(struct vm_area_struct *vma,
71937193
} else if (unlikely(is_pte_marker(pte))) {
71947194
/*
71957195
* Do nothing on a poison marker; page is
7196-
* corrupted, permissons do not apply. Here
7196+
* corrupted, permissions do not apply. Here
71977197
* pte_marker_uffd_wp()==true implies !poison
71987198
* because they're mutual exclusive.
71997199
*/

mm/hugetlb_vmemmap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static int vmemmap_split_pmd(pmd_t *pmd, struct page *head, unsigned long start,
7575
if (likely(pmd_leaf(*pmd))) {
7676
/*
7777
* 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
7979
* individually).
8080
*/
8181
if (!PageReserved(head))
@@ -684,7 +684,7 @@ static void __hugetlb_vmemmap_optimize_folios(struct hstate *h,
684684
ret = hugetlb_vmemmap_split_folio(h, folio);
685685

686686
/*
687-
* Spliting the PMD requires allocating a page, thus lets fail
687+
* Splitting the PMD requires allocating a page, thus let's fail
688688
* early once we encounter the first OOM. No point in retrying
689689
* as it can be dynamically done on remap with the memory
690690
* we get back from the vmemmap deduplication.
@@ -715,7 +715,7 @@ static void __hugetlb_vmemmap_optimize_folios(struct hstate *h,
715715
/*
716716
* Pages to be freed may have been accumulated. If we
717717
* 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
719719
* halfway and head page allocation also failed. In this
720720
* case __hugetlb_vmemmap_optimize_folio() would free memory
721721
* allowing more vmemmap remaps to occur.

mm/kmsan/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bool kmsan_enabled __read_mostly;
3333

3434
/*
3535
* Per-CPU KMSAN context to be used in interrupts, where current->kmsan is
36-
* unavaliable.
36+
* unavailable.
3737
*/
3838
DEFINE_PER_CPU(struct kmsan_ctx, kmsan_percpu_ctx);
3939

mm/ksm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static unsigned long ewma(unsigned long prev, unsigned long curr)
389389
* exponentially weighted moving average. The new pages_to_scan value is
390390
* multiplied with that change factor:
391391
*
392-
* new_pages_to_scan *= change facor
392+
* new_pages_to_scan *= change factor
393393
*
394394
* The new_pages_to_scan value is limited by the cpu min and max values. It
395395
* calculates the cpu percent for the last scan and calculates the new

mm/memory-tiers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static inline void __init_node_memory_type(int node, struct memory_dev_type *mem
519519
* for each device getting added in the same NUMA node
520520
* with this specific memtype, bump the map count. We
521521
* 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
523523
* only reference count taken here.
524524
*/
525525

mm/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4328,7 +4328,7 @@ static inline bool should_try_to_free_swap(struct folio *folio,
43284328
* If we want to map a page that's in the swapcache writable, we
43294329
* have to detect via the refcount if we're really the exclusive
43304330
* 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.
43324332
*/
43334333
return (fault_flags & FAULT_FLAG_WRITE) && !folio_test_ksm(folio) &&
43344334
folio_ref_count(folio) == (1 + folio_nr_pages(folio));
@@ -5405,7 +5405,7 @@ vm_fault_t do_set_pmd(struct vm_fault *vmf, struct folio *folio, struct page *pa
54055405

54065406
/**
54075407
* set_pte_range - Set a range of PTEs to point to pages in a folio.
5408-
* @vmf: Fault decription.
5408+
* @vmf: Fault description.
54095409
* @folio: The folio that contains @page.
54105410
* @page: The first page to create a PTE for.
54115411
* @nr: The number of PTEs to create.

mm/secretmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ SYSCALL_DEFINE1(memfd_secret, unsigned int, flags)
227227
struct file *file;
228228
int fd, err;
229229

230-
/* make sure local flags do not confict with global fcntl.h */
230+
/* make sure local flags do not conflict with global fcntl.h */
231231
BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC);
232232

233233
if (!secretmem_enable || !can_set_direct_map())

mm/slab_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static struct kmem_cache *create_cache(const char *name,
259259
* @object_size: The size of objects to be created in this cache.
260260
* @args: Additional arguments for the cache creation (see
261261
* &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
263263
* in the description below.
264264
*
265265
* Not to be called directly, use the kmem_cache_create() wrapper with the same

0 commit comments

Comments
 (0)