Skip to content

Commit 7d3e2bc

Browse files
rhvgoyaltorvalds
authored andcommitted
kexec: rename unusebale_pages to unusable_pages
Let's use the more common "unusable". This patch was originally written and posted by Boris. I am including it in this patch series. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Cc: Borislav Petkov <bp@suse.de> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Eric Biederman <ebiederm@xmission.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Matthew Garrett <mjg59@srcf.ucam.org> Cc: Greg Kroah-Hartman <greg@kroah.com> Cc: Dave Young <dyoung@redhat.com> Cc: WANG Chao <chaowang@redhat.com> Cc: Baoquan He <bhe@redhat.com> Cc: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent de5b56b commit 7d3e2bc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎include/linux/kexec.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct kimage {
100100

101101
struct list_head control_pages;
102102
struct list_head dest_pages;
103-
struct list_head unuseable_pages;
103+
struct list_head unusable_pages;
104104

105105
/* Address of next control page to allocate for crash kernels. */
106106
unsigned long control_page;

‎kernel/kexec.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static int do_kimage_alloc(struct kimage **rimage, unsigned long entry,
154154
INIT_LIST_HEAD(&image->dest_pages);
155155

156156
/* Initialize the list of unusable pages */
157-
INIT_LIST_HEAD(&image->unuseable_pages);
157+
INIT_LIST_HEAD(&image->unusable_pages);
158158

159159
/* Read in the segments */
160160
image->nr_segments = nr_segments;
@@ -609,7 +609,7 @@ static void kimage_free_extra_pages(struct kimage *image)
609609
kimage_free_page_list(&image->dest_pages);
610610

611611
/* Walk through and free any unusable pages I have cached */
612-
kimage_free_page_list(&image->unuseable_pages);
612+
kimage_free_page_list(&image->unusable_pages);
613613

614614
}
615615
static void kimage_terminate(struct kimage *image)
@@ -732,7 +732,7 @@ static struct page *kimage_alloc_page(struct kimage *image,
732732
/* If the page cannot be used file it away */
733733
if (page_to_pfn(page) >
734734
(KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) {
735-
list_add(&page->lru, &image->unuseable_pages);
735+
list_add(&page->lru, &image->unusable_pages);
736736
continue;
737737
}
738738
addr = page_to_pfn(page) << PAGE_SHIFT;

0 commit comments

Comments
 (0)