Skip to content

Commit 183ff22

Browse files
Simon ArlottAdrianBunk
authored andcommitted
spelling fixes: mm/
Spelling fixes in mm/. Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Signed-off-by: Adrian Bunk <bunk@kernel.org>
1 parent 676b185 commit 183ff22

11 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎mm/hugetlb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ static long region_chg(struct list_head *head, long f, long t)
10171017

10181018
/* If we are below the current region then a new region is required.
10191019
* Subtle, allocate a new region at the position but make it zero
1020-
* size such that we can guarentee to record the reservation. */
1020+
* size such that we can guarantee to record the reservation. */
10211021
if (&rg->link == head || t < rg->from) {
10221022
nrg = kmalloc(sizeof(*nrg), GFP_KERNEL);
10231023
if (!nrg)

‎mm/memory.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in
27132713
return 0;
27142714

27152715
down_read(&mm->mmap_sem);
2716-
/* ignore errors, just check how much was sucessfully transfered */
2716+
/* ignore errors, just check how much was successfully transferred */
27172717
while (len) {
27182718
int bytes, ret, offset;
27192719
void *maddr;

‎mm/memory_hotplug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int __add_pages(struct zone *zone, unsigned long phys_start_pfn,
121121
err = __add_section(zone, i << PFN_SECTION_SHIFT);
122122

123123
/*
124-
* EEXIST is finally dealed with by ioresource collision
124+
* EEXIST is finally dealt with by ioresource collision
125125
* check. see add_memory() => register_memory_resource()
126126
* Warning will be printed if there is collision.
127127
*/

‎mm/mempool.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ EXPORT_SYMBOL(mempool_free_slab);
299299

300300
/*
301301
* A commonly used alloc and free fn that kmalloc/kfrees the amount of memory
302-
* specfied by pool_data
302+
* specified by pool_data
303303
*/
304304
void *mempool_kmalloc(gfp_t gfp_mask, void *pool_data)
305305
{

‎mm/page-writeback.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ int __set_page_dirty_no_writeback(struct page *page)
989989
* mapping is pinned by the vma's ->vm_file reference.
990990
*
991991
* We take care to handle the case where the page was truncated from the
992-
* mapping by re-checking page_mapping() insode tree_lock.
992+
* mapping by re-checking page_mapping() inside tree_lock.
993993
*/
994994
int __set_page_dirty_nobuffers(struct page *page)
995995
{

‎mm/page_alloc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static unsigned long __meminitdata dma_reserve;
123123

124124
#ifdef CONFIG_ARCH_POPULATES_NODE_MAP
125125
/*
126-
* MAX_ACTIVE_REGIONS determines the maxmimum number of distinct
126+
* MAX_ACTIVE_REGIONS determines the maximum number of distinct
127127
* ranges of memory (RAM) that may be registered with add_active_range().
128128
* Ranges passed to add_active_range() will be merged if possible
129129
* so the number of times add_active_range() can be called is
@@ -1260,7 +1260,7 @@ int zone_watermark_ok(struct zone *z, int order, unsigned long mark,
12601260
* skip over zones that are not allowed by the cpuset, or that have
12611261
* been recently (in last second) found to be nearly full. See further
12621262
* comments in mmzone.h. Reduces cache footprint of zonelist scans
1263-
* that have to skip over alot of full or unallowed zones.
1263+
* that have to skip over a lot of full or unallowed zones.
12641264
*
12651265
* If the zonelist cache is present in the passed in zonelist, then
12661266
* returns a pointer to the allowed node mask (either the current
@@ -2358,7 +2358,7 @@ void build_all_zonelists(void)
23582358
__build_all_zonelists(NULL);
23592359
cpuset_init_current_mems_allowed();
23602360
} else {
2361-
/* we have to stop all cpus to guaranntee there is no user
2361+
/* we have to stop all cpus to guarantee there is no user
23622362
of zonelist */
23632363
stop_machine_run(__build_all_zonelists, NULL, NR_CPUS);
23642364
/* cpuset refresh routine should be here */
@@ -2864,7 +2864,7 @@ static int __meminit first_active_region_index_in_nid(int nid)
28642864

28652865
/*
28662866
* Basic iterator support. Return the next active range of PFNs for a node
2867-
* Note: nid == MAX_NUMNODES returns next region regardles of node
2867+
* Note: nid == MAX_NUMNODES returns next region regardless of node
28682868
*/
28692869
static int __meminit next_active_region_index_in_nid(int index, int nid)
28702870
{

‎mm/prio_tree.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Radix priority search tree for address_space->i_mmap
3535
*
3636
* For each vma that map a unique set of file pages i.e., unique [radix_index,
37-
* heap_index] value, we have a corresponing priority search tree node. If
37+
* heap_index] value, we have a corresponding priority search tree node. If
3838
* multiple vmas have identical [radix_index, heap_index] value, then one of
3939
* them is used as a tree node and others are stored in a vm_set list. The tree
4040
* node points to the first vma (head) of the list using vm_set.head.

‎mm/slab.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* initialized objects.
2727
*
2828
* This means, that your constructor is used only for newly allocated
29-
* slabs and you must pass objects with the same intializations to
29+
* slabs and you must pass objects with the same initializations to
3030
* kmem_cache_free.
3131
*
3232
* Each cache can only support one memory type (GFP_DMA, GFP_HIGHMEM,
@@ -1369,7 +1369,7 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb,
13691369
* structure is usually allocated from kmem_cache_create() and
13701370
* gets destroyed at kmem_cache_destroy().
13711371
*/
1372-
/* fall thru */
1372+
/* fall through */
13731373
#endif
13741374
case CPU_UP_CANCELED:
13751375
case CPU_UP_CANCELED_FROZEN:
@@ -3806,7 +3806,7 @@ const char *kmem_cache_name(struct kmem_cache *cachep)
38063806
EXPORT_SYMBOL_GPL(kmem_cache_name);
38073807

38083808
/*
3809-
* This initializes kmem_list3 or resizes varioius caches for all nodes.
3809+
* This initializes kmem_list3 or resizes various caches for all nodes.
38103810
*/
38113811
static int alloc_kmemlist(struct kmem_cache *cachep)
38123812
{

‎mm/swap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/*
8-
* This file contains the default values for the opereation of the
8+
* This file contains the default values for the operation of the
99
* Linux VM subsystem. Fine-tuning documentation can be found in
1010
* Documentation/sysctl/vm.txt.
1111
* Started 18.12.91

‎mm/vmalloc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags,
247247
EXPORT_SYMBOL_GPL(__get_vm_area);
248248

249249
/**
250-
* get_vm_area - reserve a contingous kernel virtual area
250+
* get_vm_area - reserve a contiguous kernel virtual area
251251
* @size: size of the area
252252
* @flags: %VM_IOREMAP for I/O mappings or VM_ALLOC
253253
*
@@ -303,7 +303,7 @@ static struct vm_struct *__remove_vm_area(void *addr)
303303
}
304304

305305
/**
306-
* remove_vm_area - find and remove a contingous kernel virtual area
306+
* remove_vm_area - find and remove a continuous kernel virtual area
307307
* @addr: base address
308308
*
309309
* Search for the kernel VM area starting at @addr, and remove it.
@@ -364,7 +364,7 @@ static void __vunmap(void *addr, int deallocate_pages)
364364
* vfree - release memory allocated by vmalloc()
365365
* @addr: memory base address
366366
*
367-
* Free the virtually contiguous memory area starting at @addr, as
367+
* Free the virtually continuous memory area starting at @addr, as
368368
* obtained from vmalloc(), vmalloc_32() or __vmalloc(). If @addr is
369369
* NULL, no operation is performed.
370370
*

0 commit comments

Comments
 (0)