Skip to content

Commit 2de1a7e

Browse files
Seth Jenningstorvalds
authored andcommitted
mm/swapfile.c: fix comment typos
Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7f88f88 commit 2de1a7e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎mm/swapfile.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ swp_entry_t get_swap_page(void)
707707
return (swp_entry_t) {0};
708708
}
709709

710-
/* The only caller of this function is now susupend routine */
710+
/* The only caller of this function is now suspend routine */
711711
swp_entry_t get_swap_page_of_type(int type)
712712
{
713713
struct swap_info_struct *si;
@@ -845,7 +845,7 @@ static unsigned char swap_entry_free(struct swap_info_struct *p,
845845
}
846846

847847
/*
848-
* Caller has made sure that the swapdevice corresponding to entry
848+
* Caller has made sure that the swap device corresponding to entry
849849
* is still around or has not been recycled.
850850
*/
851851
void swap_free(swp_entry_t entry)
@@ -947,7 +947,7 @@ int try_to_free_swap(struct page *page)
947947
* original page might be freed under memory pressure, then
948948
* later read back in from swap, now with the wrong data.
949949
*
950-
* Hibration suspends storage while it is writing the image
950+
* Hibernation suspends storage while it is writing the image
951951
* to disk so check that here.
952952
*/
953953
if (pm_suspended_storage())
@@ -1179,7 +1179,7 @@ static int unuse_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
11791179
* some architectures (e.g. x86_32 with PAE) we might catch a glimpse
11801180
* of unmatched parts which look like swp_pte, so unuse_pte must
11811181
* recheck under pte lock. Scanning without pte lock lets it be
1182-
* preemptible whenever CONFIG_PREEMPT but not CONFIG_HIGHPTE.
1182+
* preemptable whenever CONFIG_PREEMPT but not CONFIG_HIGHPTE.
11831183
*/
11841184
pte = pte_offset_map(pmd, addr);
11851185
do {
@@ -1934,7 +1934,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
19341934
vfree(swap_map);
19351935
vfree(cluster_info);
19361936
vfree(frontswap_map);
1937-
/* Destroy swap account informatin */
1937+
/* Destroy swap account information */
19381938
swap_cgroup_swapoff(type);
19391939

19401940
inode = mapping->host;
@@ -2786,8 +2786,8 @@ int add_swap_count_continuation(swp_entry_t entry, gfp_t gfp_mask)
27862786

27872787
/*
27882788
* We are fortunate that although vmalloc_to_page uses pte_offset_map,
2789-
* no architecture is using highmem pages for kernel pagetables: so it
2790-
* will not corrupt the GFP_ATOMIC caller's atomic pagetable kmaps.
2789+
* no architecture is using highmem pages for kernel page tables: so it
2790+
* will not corrupt the GFP_ATOMIC caller's atomic page table kmaps.
27912791
*/
27922792
head = vmalloc_to_page(si->swap_map + offset);
27932793
offset &= ~PAGE_MASK;

0 commit comments

Comments
 (0)