mm: clear spelling mistakes
Subsystems (7)
cover mm: clear spelling mistakes
The files being checked:mm/include/linux/mm*.h, but excluded mmu_notifier.h
Zhen Lei (2):
mm: fix spelling mistakes in header files
mm: fix spelling mistakes in under directory mm
include/linux/mm.h | 2 +- include/linux/mm_types.h | 4 ++-- include/linux/mmzone.h | 2 +- mm/internal.h | 2 +- mm/memory-failure.c | 2 +- mm/memory_hotplug.c | 4 ++-- mm/page_alloc.c | 2 +- mm/swap.c | 2 +- mm/swapfile.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 mm: fix spelling mistakes in header files
Fix some spelling mistakes in comments:
statments ==> statements
adresses ==> addresses
aggresive ==> aggressive
datas ==> data
--- include/linux/mm.h | 2 +- include/linux/mm_types.h | 4 ++-- include/linux/mmzone.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
include/linux/mm.h +1 -1
@@ -155,7 +155,7 @@ extern int mmap_rnd_compat_bits __read_mostly;/* This function must be updated when the size of struct page grows above 80 * or reduces below 56. The idea that compiler optimizes out switch() * statement, and only leaves move/store instructions. Also the compiler can -* combine write statments if they are both assignments and can be reordered, +* combine write statements if they are both assignments and can be reordered, * this can result in several of the writes here being dropped. */ #define mm_zero_struct_page (pp) __mm_zero_struct_page(pp)
include/linux/mm_types.h +2 -2
@@ -397,7 +397,7 @@ struct mm_struct {unsigned long mmap_base;/* base of mmap area */ unsigned long mmap_legacy_base;/* base of mmap area in bottom-up allocations */ #ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES -/* Base adresses for compatible mmap() */ +/* Base addresses for compatible mmap() */ unsigned long mmap_compat_base;unsigned long mmap_compat_legacy_base;#endif
@@ -439,7 +439,7 @@ struct mm_struct {* @has_pinned: Whether this mm has pinned any pages. This can * be either replaced in the future by @pinned_vm when it * becomes stable, or grow into a counter on its own. We're -* aggresive on this bit now - even if the pinned pages were +* aggressive on this bit now - even if the pinned pages were * unpinned later on, we'll still keep this bit set for the * lifecycle of this mm just for simplicity. */
include/linux/mmzone.h +1 -1
@@ -113,7 +113,7 @@ static inline bool free_area_empty(struct free_area *area, int migratetype)struct pglist_data ;/* -* Add a wild amount of padding here to ensure datas fall into separate +* Add a wild amount of padding here to ensure data fall into separate * cachelines. There are very few zone structures in the machine, so space * consumption is not a concern here. */
Signature · 1 line
2.25.1
Re: [PATCH 1/2] mm: fix spelling mistakes in header files
Quoted 8 lines · Zhen Lei
Fix some spelling mistakes in comments:
statments ==> statements
adresses ==> addresses
aggresive ==> aggressive
datas ==> dataSigned-off-by Zhen Lei <[email protected]>
Quoted 59 lines
--- include/linux/mm.h | 2 +- include/linux/mm_types.h | 4 ++-- include/linux/mmzone.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)include/linux/mm.h +1
-1@@ -155,7 +155,7 @@ extern int mmap_rnd_compat_bits __read_mostly;/* This function must be updated when the size of struct page grows above 80 * or reduces below 56. The idea that compiler optimizes out switch() * statement, and only leaves move/store instructions. Also the compiler can -* combine write statments if they are both assignments and can be reordered, +* combine write statements if they are both assignments and can be reordered, * this can result in several of the writes here being dropped. */ #define mm_zero_struct_page (pp) __mm_zero_struct_page(pp)include/linux/mm_types.h +2
-2@@ -397,7 +397,7 @@ struct mm_struct {unsigned long mmap_base;/* base of mmap area */ unsigned long mmap_legacy_base;/* base of mmap area in bottom-up allocations */ #ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES -/* Base adresses for compatible mmap() */ +/* Base addresses for compatible mmap() */ unsigned long mmap_compat_base;unsigned long mmap_compat_legacy_base;#endif @@ -439,7 +439,7 @@ struct mm_struct {* @has_pinned: Whether this mm has pinned any pages. This can * be either replaced in the future by @pinned_vm when it * becomes stable, or grow into a counter on its own. We're -* aggresive on this bit now - even if the pinned pages were +* aggressive on this bit now - even if the pinned pages were * unpinned later on, we'll still keep this bit set for the * lifecycle of this mm just for simplicity. */ include/linux/mmzone.h +1
-2@@ -113,7 +113,7 @@ static inline bool free_area_empty(struct free_area *area, int migratetype)struct pglist_data ;/* -* Add a wild amount of padding here to ensure datas fall into separate +* Add a wild amount of padding here to ensure data fall into separate * cachelines. There are very few zone structures in the machine, so space * consumption is not a concern here. */ --2.25.1
PATCH 2/2 mm: fix spelling mistakes in under directory mm
In reply to Zhen LeiFix some spelling mistakes in comments:
posion ==> poison
higer ==> higher
precisly ==> precisely
wont ==> won't
tha ==> the
endianess ==> endianness
--- mm/internal.h | 2 +- mm/memory-failure.c | 2 +- mm/memory_hotplug.c | 4 ++-- mm/page_alloc.c | 2 +- mm/swap.c | 2 +- mm/swapfile.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)
mm/internal.h +1 -1
@@ -100,7 +100,7 @@ static inline void set_page_refcounted(struct page *page)* When kernel touch the user page, the user page may be have been marked * poison but still mapped in user space, if without this page, the kernel * can guarantee the data integrity and operation success, the kernel is -* better to check the posion status and avoid touching it, be good not to +* better to check the poison status and avoid touching it, be good not to * panic, coredump for process fatal signal is a sample case matching this * scenario. Or if kernel can't guarantee the data integrity, it's better * not to call this function, let kernel touch the poison page and get to
mm/memory-failure.c +1 -1
@@ -1134,7 +1134,7 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn,* could potentially call huge_pmd_unshare. Because of * this, take semaphore in write mode here and set * TTU_RMAP_LOCKED to indicate we have taken the lock -* at this higer level. +* at this higher level. */ mapping =hugetlb_page_mapping_lock_write (hpage);if (mapping) {
mm/memory_hotplug.c +2 -2
@@ -913,7 +913,7 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, struct zone *z/* * {on,off}lining is constrained to full memory sections (or more -* precisly to memory blocks from the user space POV). +* precisely to memory blocks from the user space POV). * memmap_on_memory is an exception because it reserves initial part * of the physical memory space for vmemmaps. That space is pageblock * aligned.
@@ -1703,7 +1703,7 @@ int __ref offline_pages(unsigned long start_pfn, unsigned long nr_pages)/* * {on,off}lining is constrained to full memory sections (or more -* precisly to memory blocks from the user space POV). +* precisely to memory blocks from the user space POV). * memmap_on_memory is an exception because it reserves initial part * of the physical memory space for vmemmaps. That space is pageblock * aligned.
mm/page_alloc.c +1 -1
@@ -3103,7 +3103,7 @@ static void __drain_all_pages(struct zone *zone, bool force_all_cpus)int cpu;/* -* Allocate in the BSS so we wont require allocation in +* Allocate in the BSS so we won't require allocation in * direct reclaim path for CONFIG_CPUMASK_OFFSTACK=y */ static cpumask_t cpus_with_pcps;
mm/swap.c +1 -1
@@ -554,7 +554,7 @@ static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec) }else {/* * The page's writeback ends up during pagevec -* We moves tha page into tail of inactive. +* We moves the page into tail of inactive. */ add_page_to_lru_list_tail (page, lruvec);__count_vm_events (PGROTATED , nr_pages);
mm/swapfile.c +1 -1
@@ -2972,7 +2972,7 @@ static unsigned long read_swap_header(struct swap_info_struct *p,return 0 ; } -/* swap partition endianess hack... */ +/* swap partition endianness hack... */ if (swab32 (swap_header->info.version) ==1 ) {swab32s (&swap_header->info.version);swab32s (&swap_header->info.last_page);
Signature · 1 line
2.25.1
Re: [PATCH 2/2] mm: fix spelling mistakes in under directory mm
Quoted 10 lines · Zhen Lei
Fix some spelling mistakes in comments:
posion ==> poison
higer ==> higher
precisly ==> precisely
wont ==> won't
tha ==> the
endianess ==> endiannessSigned-off-by Zhen Lei <[email protected]>
This can be merged with [1/2].
Quoted 75 lines
--- mm/internal.h | 2 +- mm/memory-failure.c | 2 +- mm/memory_hotplug.c | 4 ++-- mm/page_alloc.c | 2 +- mm/swap.c | 2 +- mm/swapfile.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)mm/internal.h +1
-1@@ -100,7 +100,7 @@ static inline void set_page_refcounted(struct page *page)* When kernel touch the user page, the user page may be have been marked * poison but still mapped in user space, if without this page, the kernel * can guarantee the data integrity and operation success, the kernel is -* better to check the posion status and avoid touching it, be good not to +* better to check the poison status and avoid touching it, be good not to * panic, coredump for process fatal signal is a sample case matching this * scenario. Or if kernel can't guarantee the data integrity, it's better * not to call this function, let kernel touch the poison page and get to mm/memory-failure.c +1
-1@@ -1134,7 +1134,7 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn,* could potentially call huge_pmd_unshare. Because of * this, take semaphore in write mode here and set * TTU_RMAP_LOCKED to indicate we have taken the lock -* at this higer level. +* at this higher level. */ mapping =hugetlb_page_mapping_lock_write (hpage);if (mapping) {mm/memory_hotplug.c +2
-2@@ -913,7 +913,7 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, struct zone *z/* * {on,off}lining is constrained to full memory sections (or more -* precisly to memory blocks from the user space POV). +* precisely to memory blocks from the user space POV). * memmap_on_memory is an exception because it reserves initial part * of the physical memory space for vmemmaps. That space is pageblock * aligned. @@ -1703,7 +1703,7 @@ int __ref offline_pages(unsigned long start_pfn, unsigned long nr_pages)/* * {on,off}lining is constrained to full memory sections (or more -* precisly to memory blocks from the user space POV). +* precisely to memory blocks from the user space POV). * memmap_on_memory is an exception because it reserves initial part * of the physical memory space for vmemmaps. That space is pageblock * aligned. mm/page_alloc.c +1
-1@@ -3103,7 +3103,7 @@ static void __drain_all_pages(struct zone *zone, bool force_all_cpus)int cpu;/* -* Allocate in the BSS so we wont require allocation in +* Allocate in the BSS so we won't require allocation in * direct reclaim path for CONFIG_CPUMASK_OFFSTACK=y */ static cpumask_t cpus_with_pcps;mm/swap.c +0
-0
mm/swap.c static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec) · line 557
Quoted 5 lines
mm/swap.c +1
-1@@ -554,7 +554,7 @@ static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec) }else {/* * The page's writeback ends up during pagevec -* We moves tha page into tail of inactive. +* We moves the page into tail of inactive.
*we move the page into tail of inactive*
Quoted 21 lines
mm/swap.c +0
-0*/ add_page_to_lru_list_tail (page, lruvec);__count_vm_events (PGROTATED , nr_pages);mm/swapfile.c +1
-2@@ -2972,7 +2972,7 @@ static unsigned long read_swap_header(struct swap_info_struct *p,return 0 ; } -/* swap partition endianess hack... */ +/* swap partition endianness hack... */ if (swab32 (swap_header->info.version) ==1 ) {swab32s (&swap_header->info.version);swab32s (&swap_header->info.last_page); --2.25.1
Re: [PATCH 2/2] mm: fix spelling mistakes in under directory mm
Quoted 10 lines · Souptick Joarder
Quoted 9 lines · Zhen Lei
Fix some spelling mistakes in comments:
posion ==> poison
higer ==> higher
precisly ==> precisely
wont ==> won't
tha ==> the
endianess ==> endianness
Quoted 3 lines
Quoted 1 line
Signed-off-by Zhen Lei <[email protected]>This can be merged with [1/2].
OK, I will send V2.
Quoted 74 lines
Quoted 74 lines
--- mm/internal.h | 2 +- mm/memory-failure.c | 2 +- mm/memory_hotplug.c | 4 ++-- mm/page_alloc.c | 2 +- mm/swap.c | 2 +- mm/swapfile.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)mm/internal.h +1
-1@@ -100,7 +100,7 @@ static inline void set_page_refcounted(struct page *page)* When kernel touch the user page, the user page may be have been marked * poison but still mapped in user space, if without this page, the kernel * can guarantee the data integrity and operation success, the kernel is -* better to check the posion status and avoid touching it, be good not to +* better to check the poison status and avoid touching it, be good not to * panic, coredump for process fatal signal is a sample case matching this * scenario. Or if kernel can't guarantee the data integrity, it's better * not to call this function, let kernel touch the poison page and get to mm/memory-failure.c +1
-1@@ -1134,7 +1134,7 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn,* could potentially call huge_pmd_unshare. Because of * this, take semaphore in write mode here and set * TTU_RMAP_LOCKED to indicate we have taken the lock -* at this higer level. +* at this higher level. */ mapping =hugetlb_page_mapping_lock_write (hpage);if (mapping) {mm/memory_hotplug.c +2
-2@@ -913,7 +913,7 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, struct zone *z/* * {on,off}lining is constrained to full memory sections (or more -* precisly to memory blocks from the user space POV). +* precisely to memory blocks from the user space POV). * memmap_on_memory is an exception because it reserves initial part * of the physical memory space for vmemmaps. That space is pageblock * aligned. @@ -1703,7 +1703,7 @@ int __ref offline_pages(unsigned long start_pfn, unsigned long nr_pages)/* * {on,off}lining is constrained to full memory sections (or more -* precisly to memory blocks from the user space POV). +* precisely to memory blocks from the user space POV). * memmap_on_memory is an exception because it reserves initial part * of the physical memory space for vmemmaps. That space is pageblock * aligned. mm/page_alloc.c +1
-1@@ -3103,7 +3103,7 @@ static void __drain_all_pages(struct zone *zone, bool force_all_cpus)int cpu;/* -* Allocate in the BSS so we wont require allocation in +* Allocate in the BSS so we won't require allocation in * direct reclaim path for CONFIG_CPUMASK_OFFSTACK=y */ static cpumask_t cpus_with_pcps;mm/swap.c +0
-0
Quoted 8 lines
mm/swap.c static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec) · line 557
Quoted 6 lines
mm/swap.c +1
-1@@ -554,7 +554,7 @@ static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec) }else {/* * The page's writeback ends up during pagevec -* We moves tha page into tail of inactive. +* We moves the page into tail of inactive. *we move the page into tail of inactive*
Good eye!
Quoted 25 lines
Quoted 18 lines
mm/swap.c +0
-0*/ add_page_to_lru_list_tail (page, lruvec);__count_vm_events (PGROTATED , nr_pages);mm/swapfile.c +1
-2@@ -2972,7 +2972,7 @@ static unsigned long read_swap_header(struct swap_info_struct *p,return 0 ; } -/* swap partition endianess hack... */ +/* swap partition endianness hack... */ if (swab32 (swap_header->info.version) ==1 ) {swab32s (&swap_header->info.version);swab32s (&swap_header->info.last_page); --Quoted 4 lines
2.25.1
.