diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-10-30 18:09:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-31 11:54:16 -0400 |
commit | c6ffc5ca8fb311a89cb6de5c31b6511308ddac8d (patch) | |
tree | e6f5d971410650d7e50a092be8834679bcf348ce | |
parent | 53ab85ebfd27cdf16c8ddc72781c072a63bef3cb (diff) |
memblock: rename free_all_bootmem to memblock_free_all
The conversion is done using
sed -i 's@free_all_bootmem@memblock_free_all@' \
$(git grep -l free_all_bootmem)
Link: http://lkml.kernel.org/r/1536927045-23536-26-git-send-email-rppt@linux.vnet.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Mark Salter <msalter@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Rich Felker <dalias@libc.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Serge Semin <fancer.lancer@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
35 files changed, 39 insertions, 39 deletions
diff --git a/arch/alpha/mm/init.c b/arch/alpha/mm/init.c index 9d74520298ab..853d15344934 100644 --- a/arch/alpha/mm/init.c +++ b/arch/alpha/mm/init.c | |||
@@ -282,7 +282,7 @@ mem_init(void) | |||
282 | { | 282 | { |
283 | set_max_mapnr(max_low_pfn); | 283 | set_max_mapnr(max_low_pfn); |
284 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); | 284 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); |
285 | free_all_bootmem(); | 285 | memblock_free_all(); |
286 | mem_init_print_info(NULL); | 286 | mem_init_print_info(NULL); |
287 | } | 287 | } |
288 | 288 | ||
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index ba145065c579..0f29c6548779 100644 --- a/arch/arc/mm/init.c +++ b/arch/arc/mm/init.c | |||
@@ -218,7 +218,7 @@ void __init mem_init(void) | |||
218 | free_highmem_page(pfn_to_page(tmp)); | 218 | free_highmem_page(pfn_to_page(tmp)); |
219 | #endif | 219 | #endif |
220 | 220 | ||
221 | free_all_bootmem(); | 221 | memblock_free_all(); |
222 | mem_init_print_info(NULL); | 222 | mem_init_print_info(NULL); |
223 | } | 223 | } |
224 | 224 | ||
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 0cc8e04295a4..d421a10c93a8 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -508,7 +508,7 @@ void __init mem_init(void) | |||
508 | 508 | ||
509 | /* this will put all unused low memory onto the freelists */ | 509 | /* this will put all unused low memory onto the freelists */ |
510 | free_unused_memmap(); | 510 | free_unused_memmap(); |
511 | free_all_bootmem(); | 511 | memblock_free_all(); |
512 | 512 | ||
513 | #ifdef CONFIG_SA1111 | 513 | #ifdef CONFIG_SA1111 |
514 | /* now that our DMA memory is actually so designated, we can free it */ | 514 | /* now that our DMA memory is actually so designated, we can free it */ |
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 2ddb1c5e988d..d8d73073835f 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c | |||
@@ -599,7 +599,7 @@ void __init mem_init(void) | |||
599 | free_unused_memmap(); | 599 | free_unused_memmap(); |
600 | #endif | 600 | #endif |
601 | /* this will put all unused low memory onto the freelists */ | 601 | /* this will put all unused low memory onto the freelists */ |
602 | free_all_bootmem(); | 602 | memblock_free_all(); |
603 | 603 | ||
604 | kexec_reserve_crashkres_pages(); | 604 | kexec_reserve_crashkres_pages(); |
605 | 605 | ||
diff --git a/arch/c6x/mm/init.c b/arch/c6x/mm/init.c index dc369ad8b0ba..3383df8b3508 100644 --- a/arch/c6x/mm/init.c +++ b/arch/c6x/mm/init.c | |||
@@ -62,7 +62,7 @@ void __init mem_init(void) | |||
62 | high_memory = (void *)(memory_end & PAGE_MASK); | 62 | high_memory = (void *)(memory_end & PAGE_MASK); |
63 | 63 | ||
64 | /* this will put all memory onto the freelists */ | 64 | /* this will put all memory onto the freelists */ |
65 | free_all_bootmem(); | 65 | memblock_free_all(); |
66 | 66 | ||
67 | mem_init_print_info(NULL); | 67 | mem_init_print_info(NULL); |
68 | } | 68 | } |
diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c index 5d31ac9d7a8d..f2bf4487aabd 100644 --- a/arch/h8300/mm/init.c +++ b/arch/h8300/mm/init.c | |||
@@ -96,7 +96,7 @@ void __init mem_init(void) | |||
96 | max_mapnr = MAP_NR(high_memory); | 96 | max_mapnr = MAP_NR(high_memory); |
97 | 97 | ||
98 | /* this will put all low memory onto the freelists */ | 98 | /* this will put all low memory onto the freelists */ |
99 | free_all_bootmem(); | 99 | memblock_free_all(); |
100 | 100 | ||
101 | mem_init_print_info(NULL); | 101 | mem_init_print_info(NULL); |
102 | } | 102 | } |
diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c index d789b9cc0189..88643faf3981 100644 --- a/arch/hexagon/mm/init.c +++ b/arch/hexagon/mm/init.c | |||
@@ -68,7 +68,7 @@ unsigned long long kmap_generation; | |||
68 | void __init mem_init(void) | 68 | void __init mem_init(void) |
69 | { | 69 | { |
70 | /* No idea where this is actually declared. Seems to evade LXR. */ | 70 | /* No idea where this is actually declared. Seems to evade LXR. */ |
71 | free_all_bootmem(); | 71 | memblock_free_all(); |
72 | mem_init_print_info(NULL); | 72 | mem_init_print_info(NULL); |
73 | 73 | ||
74 | /* | 74 | /* |
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index 2169ca52bdf4..43ea4a47163d 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -627,7 +627,7 @@ mem_init (void) | |||
627 | 627 | ||
628 | set_max_mapnr(max_low_pfn); | 628 | set_max_mapnr(max_low_pfn); |
629 | high_memory = __va(max_low_pfn * PAGE_SIZE); | 629 | high_memory = __va(max_low_pfn * PAGE_SIZE); |
630 | free_all_bootmem(); | 630 | memblock_free_all(); |
631 | mem_init_print_info(NULL); | 631 | mem_init_print_info(NULL); |
632 | 632 | ||
633 | /* | 633 | /* |
diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index 977363eda125..ae49ae4d3049 100644 --- a/arch/m68k/mm/init.c +++ b/arch/m68k/mm/init.c | |||
@@ -140,7 +140,7 @@ static inline void init_pointer_tables(void) | |||
140 | void __init mem_init(void) | 140 | void __init mem_init(void) |
141 | { | 141 | { |
142 | /* this will put all memory onto the freelists */ | 142 | /* this will put all memory onto the freelists */ |
143 | free_all_bootmem(); | 143 | memblock_free_all(); |
144 | init_pointer_tables(); | 144 | init_pointer_tables(); |
145 | mem_init_print_info(NULL); | 145 | mem_init_print_info(NULL); |
146 | } | 146 | } |
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 8c7f074ec20f..9989740d397a 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c | |||
@@ -204,7 +204,7 @@ void __init mem_init(void) | |||
204 | high_memory = (void *)__va(memory_start + lowmem_size - 1); | 204 | high_memory = (void *)__va(memory_start + lowmem_size - 1); |
205 | 205 | ||
206 | /* this will put all memory onto the freelists */ | 206 | /* this will put all memory onto the freelists */ |
207 | free_all_bootmem(); | 207 | memblock_free_all(); |
208 | #ifdef CONFIG_HIGHMEM | 208 | #ifdef CONFIG_HIGHMEM |
209 | highmem_setup(); | 209 | highmem_setup(); |
210 | #endif | 210 | #endif |
diff --git a/arch/mips/loongson64/loongson-3/numa.c b/arch/mips/loongson64/loongson-3/numa.c index c1e6ec52c614..703ad4536fe0 100644 --- a/arch/mips/loongson64/loongson-3/numa.c +++ b/arch/mips/loongson64/loongson-3/numa.c | |||
@@ -272,7 +272,7 @@ void __init paging_init(void) | |||
272 | void __init mem_init(void) | 272 | void __init mem_init(void) |
273 | { | 273 | { |
274 | high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); | 274 | high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); |
275 | free_all_bootmem(); | 275 | memblock_free_all(); |
276 | setup_zero_pages(); /* This comes from node 0 */ | 276 | setup_zero_pages(); /* This comes from node 0 */ |
277 | mem_init_print_info(NULL); | 277 | mem_init_print_info(NULL); |
278 | } | 278 | } |
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 842a49ef9909..0893b6136498 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -463,7 +463,7 @@ void __init mem_init(void) | |||
463 | high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); | 463 | high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); |
464 | 464 | ||
465 | maar_init(); | 465 | maar_init(); |
466 | free_all_bootmem(); | 466 | memblock_free_all(); |
467 | setup_zero_pages(); /* Setup zeroed pages. */ | 467 | setup_zero_pages(); /* Setup zeroed pages. */ |
468 | mem_init_free_highmem(); | 468 | mem_init_free_highmem(); |
469 | mem_init_print_info(NULL); | 469 | mem_init_print_info(NULL); |
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index 6f7bef052b7f..cb1f1a6a166d 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
@@ -475,7 +475,7 @@ void __init paging_init(void) | |||
475 | void __init mem_init(void) | 475 | void __init mem_init(void) |
476 | { | 476 | { |
477 | high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); | 477 | high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); |
478 | free_all_bootmem(); | 478 | memblock_free_all(); |
479 | setup_zero_pages(); /* This comes from node 0 */ | 479 | setup_zero_pages(); /* This comes from node 0 */ |
480 | mem_init_print_info(NULL); | 480 | mem_init_print_info(NULL); |
481 | } | 481 | } |
diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c index 5af81b866aa5..66d3e9cf498d 100644 --- a/arch/nds32/mm/init.c +++ b/arch/nds32/mm/init.c | |||
@@ -192,7 +192,7 @@ void __init mem_init(void) | |||
192 | free_highmem(); | 192 | free_highmem(); |
193 | 193 | ||
194 | /* this will put all low memory onto the freelists */ | 194 | /* this will put all low memory onto the freelists */ |
195 | free_all_bootmem(); | 195 | memblock_free_all(); |
196 | mem_init_print_info(NULL); | 196 | mem_init_print_info(NULL); |
197 | 197 | ||
198 | pr_info("virtual kernel memory layout:\n" | 198 | pr_info("virtual kernel memory layout:\n" |
diff --git a/arch/nios2/mm/init.c b/arch/nios2/mm/init.c index c92fe4234009..12923501d94f 100644 --- a/arch/nios2/mm/init.c +++ b/arch/nios2/mm/init.c | |||
@@ -73,7 +73,7 @@ void __init mem_init(void) | |||
73 | high_memory = __va(end_mem); | 73 | high_memory = __va(end_mem); |
74 | 74 | ||
75 | /* this will put all memory onto the freelists */ | 75 | /* this will put all memory onto the freelists */ |
76 | free_all_bootmem(); | 76 | memblock_free_all(); |
77 | mem_init_print_info(NULL); | 77 | mem_init_print_info(NULL); |
78 | } | 78 | } |
79 | 79 | ||
diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c index b7670de26c11..91a6a9ab7598 100644 --- a/arch/openrisc/mm/init.c +++ b/arch/openrisc/mm/init.c | |||
@@ -213,7 +213,7 @@ void __init mem_init(void) | |||
213 | memset((void *)empty_zero_page, 0, PAGE_SIZE); | 213 | memset((void *)empty_zero_page, 0, PAGE_SIZE); |
214 | 214 | ||
215 | /* this will put all low memory onto the freelists */ | 215 | /* this will put all low memory onto the freelists */ |
216 | free_all_bootmem(); | 216 | memblock_free_all(); |
217 | 217 | ||
218 | mem_init_print_info(NULL); | 218 | mem_init_print_info(NULL); |
219 | 219 | ||
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index f88a52b8531c..7e7a3126c5e9 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c | |||
@@ -621,7 +621,7 @@ void __init mem_init(void) | |||
621 | 621 | ||
622 | high_memory = __va((max_pfn << PAGE_SHIFT)); | 622 | high_memory = __va((max_pfn << PAGE_SHIFT)); |
623 | set_max_mapnr(page_to_pfn(virt_to_page(high_memory - 1)) + 1); | 623 | set_max_mapnr(page_to_pfn(virt_to_page(high_memory - 1)) + 1); |
624 | free_all_bootmem(); | 624 | memblock_free_all(); |
625 | 625 | ||
626 | #ifdef CONFIG_PA11 | 626 | #ifdef CONFIG_PA11 |
627 | if (boot_cpu_data.cpu_type == pcxl2 || boot_cpu_data.cpu_type == pcxl) { | 627 | if (boot_cpu_data.cpu_type == pcxl2 || boot_cpu_data.cpu_type == pcxl) { |
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index dd949d6649a2..b3fe79064a69 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -349,7 +349,7 @@ void __init mem_init(void) | |||
349 | 349 | ||
350 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); | 350 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); |
351 | set_max_mapnr(max_pfn); | 351 | set_max_mapnr(max_pfn); |
352 | free_all_bootmem(); | 352 | memblock_free_all(); |
353 | 353 | ||
354 | #ifdef CONFIG_HIGHMEM | 354 | #ifdef CONFIG_HIGHMEM |
355 | { | 355 | { |
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 58a522f9bcc3..d58c111099b3 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c | |||
@@ -55,7 +55,7 @@ void __init mem_init(void) | |||
55 | #endif /* CONFIG_FLATMEM */ | 55 | #endif /* CONFIG_FLATMEM */ |
56 | 56 | ||
57 | high_memory = (void *)(__va(PFN_PHYS(max_low_pfn))); | 57 | high_memory = (void *)(__va(PFN_PHYS(max_low_pfn))); |
58 | free_all_bootmem(); | 58 | memblock_free_all(); |
59 | 59 | ||
60 | mem_init_print_info(NULL); | 60 | mem_init_print_info(NULL); |
61 | } | 61 | } |
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 92d7a153e72a..873f6ee1c46d 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -139,7 +139,7 @@ void __init mem_init(void) | |||
139 | cmma_init(); | 139 | cmma_init(); |
140 | 140 | ||
141 | /* this will put all low memory onto the freelists */ | 141 | /* this will put all low memory onto the freelists */ |
142 | free_all_bootmem(); | 142 | memblock_free_all(); |
143 | setup_zero_pages(); /* Setup zeroed pages. */ | 143 | setup_zero_pages(); /* Setup zeroed pages. */ |
144 | 144 | ||
145 | cmma_init_nodat(); | 145 | cmma_init_nodat(); |
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index c884b760e52f..21447f866415 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -350,7 +350,7 @@ void __init mem_init(void) | |||
350 | high_memory = max_t(void *, high_memory, | 350 | high_memory = max_t(void *, high_memory, |
351 | __va(pgdat_end_pfn(pgdat) << PAGE_SHIFT)); | 351 | __va(pgdat_end_pfn(pgdat) << PAGE_SHIFT)); |
352 | 352 | ||
353 | free_all_bootmem(); | 353 | memblock_free_all(); |
354 | 354 | ||
355 | /* Set this up early, so we can take care of the zero page */ | 355 | /* Set this up early, so we can take care of the zero page */ |
356 | cpu_cache_init(); | 356 | cpu_cache_init(); |
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c index 885dd3881874..880714565c40 100644 --- a/arch/sparc/mm/init_32.c +++ b/arch/sparc/mm/init_32.c | |||
@@ -277,7 +277,7 @@ void __init mem_init(void) | |||
277 | 277 | ||
278 | max_mapnr = last_valid_pfn - pfn_base; | 278 | max_mapnr = last_valid_pfn - pfn_base; |
279 | high_memory = __va(max_low_pfn << PAGE_SHIFT); | 279 | high_memory = __va(max_low_pfn << PAGE_SHIFT); |
280 | free_all_bootmem(); | 280 | memblock_free_all(); |
281 | 281 | ||
282 | for (i = 0; sp_banks[i].num_bytes != 0; i++) { | 282 | for (i = 0; sp_banks[i].num_bytes != 0; i++) { |
283 | unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; | 283 | unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; |
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index 6f965e6d01cc..a8c3453195e6 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c | |||
@@ -2545,12 +2545,12 @@ void __init mem_init(void) | |||
2545 | { | 2545 | { |
2546 | high_memory = __va(last_valid_pfn << PAGE_SHIFT); | 2546 | high_memory = __va(last_valid_pfn << PAGE_SHIFT); |
2547 | 2547 | ||
2548 | free_all_bootmem(); | 2548 | memblock_free_all(); |
2549 | 2549 | ||
2550 | /* | 2550 | /* |
2551 | * Must be done after boot memory is put on freelist, because here we | 2551 | * Must be done after boot memory is put on freelist, because here we |
2552 | * might set fields in deferred struct pages that have not yet been | 2552 | * might set fields in deferred struct pages that have not yet been |
2553 | * initialized, and free_all_bootmem() initializes all the reserved | 2553 | * initialized, and memblock_free_all() initializes all the reserved |
2554 | * deferred pages for us. | 2554 | * deferred pages for us. |
2555 | */ | 2555 | */ |
2556 | register_page_bootmem_info(); | 2556 | register_page_bootmem_info(); |
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 3555c139389c..2c672a8f4571 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -51,7 +51,7 @@ void __init mem_init(void) | |||
51 | uml_reserved = brk_end; | 51 | uml_reserved = brk_end; |
52 | 52 | ||
53 | /* this will put all low memory onto the freelists */ | 53 | /* this will put all low memory onto the freelists */ |
54 | free_all_bootmem(); | 54 | memblock_free_all(); |
55 | max_low_pfn = totalram_pages; | 55 | max_low_pfn = totalram_pages; |
56 | max_pfn = totalram_pages; | 56 | max_pfn = totalram_pages; |
57 | mem_init_print_info(NULL); | 57 | mem_init_print_info(NULL); |
diff --git a/arch/unicore32/mm/init.c b/arch/unicore32/mm/init.c index 4ba51991c7de..44fd0e8fbe87 100644 --- a/arch/unicore32/mm/init.c +++ b/arch/unicore32/mm/init.c | |||
@@ -286,7 +286,7 @@ void __init mem_init(void) | |||
286 | free_unused_memmap(&meminfo); | 286 | free_unused_memmap(&meminfo); |
287 | 287 | ||
288 | /* this will put all unused low memory onto the freelists */ | 288 | /* this will put all unused low memory onto the freelists */ |
289 | free_all_bootmem(); | 289 | memblock_free_all(); |
290 | 290 | ||
291 | mem_init_print_info(NULL); | 291 | mem_init_print_info(NULL); |
292 | printk(KERN_NOTICE "Virtual kernel memory layout:\n" | 292 | printk(KERN_NOTICE "Virtual kernel memory layout:\n" |
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c index 6d18b70ed5a9..62915a5e0fa2 100644 --- a/arch/x86/mm/highmem_32.c +++ b/arch/x86/mm/highmem_32.c | |||
@@ -111,7 +111,7 @@ void __init set_highmem_pages_init(void) | |||
111 | 111 | ||
112 | /* | 112 | /* |
113 | * Explicitly reset zone->managed_pages because set_highmem_pages_init() | 113 | * Explicitly reset zone->managed_pages because set_highmem_pages_init() |
114 | * is invoked before free_all_bootmem() | 114 | * is invoked before memblock_free_all() |
115 | */ | 115 | */ |
116 | reset_all_zones_managed_pages(); | 116 | reset_all_zones_managed_pages(); |
117 | for_each_zone(zone) { | 117 | for_each_zone(zone) { |
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 142c7d9f89cc..3bbe5f58a67d 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -771,7 +771,7 @@ void __init mem_init(void) | |||
771 | #endif | 771 | #endif |
772 | /* | 772 | /* |
773 | * With CONFIG_DEBUG_PAGEALLOC initialization of highmem pages has to | 773 | * With CONFIG_DEBUG_PAGEALLOC initialization of highmem pages has to |
774 | * be done before free_all_bootmem(). Memblock use free low memory for | 774 | * be done before memblock_free_all(). Memblock use free low memory for |
775 | * temporary data (see find_range_array()) and for this purpose can use | 775 | * temporary data (see find_range_array()) and for this purpose can use |
776 | * pages that was already passed to the buddy allocator, hence marked as | 776 | * pages that was already passed to the buddy allocator, hence marked as |
777 | * not accessible in the page tables when compiled with | 777 | * not accessible in the page tables when compiled with |
@@ -781,7 +781,7 @@ void __init mem_init(void) | |||
781 | set_highmem_pages_init(); | 781 | set_highmem_pages_init(); |
782 | 782 | ||
783 | /* this will put all low memory onto the freelists */ | 783 | /* this will put all low memory onto the freelists */ |
784 | free_all_bootmem(); | 784 | memblock_free_all(); |
785 | 785 | ||
786 | after_bootmem = 1; | 786 | after_bootmem = 1; |
787 | x86_init.hyper.init_after_bootmem(); | 787 | x86_init.hyper.init_after_bootmem(); |
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index f39b51244fe2..bfb0bedc21d3 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -1188,14 +1188,14 @@ void __init mem_init(void) | |||
1188 | /* clear_bss() already clear the empty_zero_page */ | 1188 | /* clear_bss() already clear the empty_zero_page */ |
1189 | 1189 | ||
1190 | /* this will put all memory onto the freelists */ | 1190 | /* this will put all memory onto the freelists */ |
1191 | free_all_bootmem(); | 1191 | memblock_free_all(); |
1192 | after_bootmem = 1; | 1192 | after_bootmem = 1; |
1193 | x86_init.hyper.init_after_bootmem(); | 1193 | x86_init.hyper.init_after_bootmem(); |
1194 | 1194 | ||
1195 | /* | 1195 | /* |
1196 | * Must be done after boot memory is put on freelist, because here we | 1196 | * Must be done after boot memory is put on freelist, because here we |
1197 | * might set fields in deferred struct pages that have not yet been | 1197 | * might set fields in deferred struct pages that have not yet been |
1198 | * initialized, and free_all_bootmem() initializes all the reserved | 1198 | * initialized, and memblock_free_all() initializes all the reserved |
1199 | * deferred pages for us. | 1199 | * deferred pages for us. |
1200 | */ | 1200 | */ |
1201 | register_page_bootmem_info(); | 1201 | register_page_bootmem_info(); |
diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index 70ea598a37d2..0d7b3ae4960b 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c | |||
@@ -864,7 +864,7 @@ static int __init xen_mark_pinned(struct mm_struct *mm, struct page *page, | |||
864 | * The init_mm pagetable is really pinned as soon as its created, but | 864 | * The init_mm pagetable is really pinned as soon as its created, but |
865 | * that's before we have page structures to store the bits. So do all | 865 | * that's before we have page structures to store the bits. So do all |
866 | * the book-keeping now once struct pages for allocated pages are | 866 | * the book-keeping now once struct pages for allocated pages are |
867 | * initialized. This happens only after free_all_bootmem() is called. | 867 | * initialized. This happens only after memblock_free_all() is called. |
868 | */ | 868 | */ |
869 | static void __init xen_after_bootmem(void) | 869 | static void __init xen_after_bootmem(void) |
870 | { | 870 | { |
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index 34aead7dcb48..f7fbe6334939 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c | |||
@@ -152,7 +152,7 @@ void __init mem_init(void) | |||
152 | max_mapnr = max_pfn - ARCH_PFN_OFFSET; | 152 | max_mapnr = max_pfn - ARCH_PFN_OFFSET; |
153 | high_memory = (void *)__va(max_low_pfn << PAGE_SHIFT); | 153 | high_memory = (void *)__va(max_low_pfn << PAGE_SHIFT); |
154 | 154 | ||
155 | free_all_bootmem(); | 155 | memblock_free_all(); |
156 | 156 | ||
157 | mem_init_print_info(NULL); | 157 | mem_init_print_info(NULL); |
158 | pr_info("virtual kernel memory layout:\n" | 158 | pr_info("virtual kernel memory layout:\n" |
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index bcc7e2fcb6a6..b58873a567b2 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h | |||
@@ -26,7 +26,7 @@ extern unsigned long max_pfn; | |||
26 | */ | 26 | */ |
27 | extern unsigned long long max_possible_pfn; | 27 | extern unsigned long long max_possible_pfn; |
28 | 28 | ||
29 | extern unsigned long free_all_bootmem(void); | 29 | extern unsigned long memblock_free_all(void); |
30 | extern void reset_node_managed_pages(pg_data_t *pgdat); | 30 | extern void reset_node_managed_pages(pg_data_t *pgdat); |
31 | extern void reset_all_zones_managed_pages(void); | 31 | extern void reset_all_zones_managed_pages(void); |
32 | 32 | ||
diff --git a/mm/memblock.c b/mm/memblock.c index 58340de3ebc6..e2f397174734 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -1360,7 +1360,7 @@ static void * __init memblock_alloc_internal( | |||
1360 | /* | 1360 | /* |
1361 | * Detect any accidental use of these APIs after slab is ready, as at | 1361 | * Detect any accidental use of these APIs after slab is ready, as at |
1362 | * this moment memblock may be deinitialized already and its | 1362 | * this moment memblock may be deinitialized already and its |
1363 | * internal data may be destroyed (after execution of free_all_bootmem) | 1363 | * internal data may be destroyed (after execution of memblock_free_all) |
1364 | */ | 1364 | */ |
1365 | if (WARN_ON_ONCE(slab_is_available())) | 1365 | if (WARN_ON_ONCE(slab_is_available())) |
1366 | return kzalloc_node(size, GFP_NOWAIT, nid); | 1366 | return kzalloc_node(size, GFP_NOWAIT, nid); |
diff --git a/mm/nobootmem.c b/mm/nobootmem.c index ee0f7fc37fd1..bb64b09ca4d2 100644 --- a/mm/nobootmem.c +++ b/mm/nobootmem.c | |||
@@ -111,11 +111,11 @@ void __init reset_all_zones_managed_pages(void) | |||
111 | } | 111 | } |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * free_all_bootmem - release free pages to the buddy allocator | 114 | * memblock_free_all - release free pages to the buddy allocator |
115 | * | 115 | * |
116 | * Return: the number of pages actually released. | 116 | * Return: the number of pages actually released. |
117 | */ | 117 | */ |
118 | unsigned long __init free_all_bootmem(void) | 118 | unsigned long __init memblock_free_all(void) |
119 | { | 119 | { |
120 | unsigned long pages; | 120 | unsigned long pages; |
121 | 121 | ||
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8ca6954fdcdc..6e9b8387a706 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -5476,7 +5476,7 @@ overlap_memmap_init(unsigned long zone, unsigned long *pfn) | |||
5476 | 5476 | ||
5477 | /* | 5477 | /* |
5478 | * Initially all pages are reserved - free ones are freed | 5478 | * Initially all pages are reserved - free ones are freed |
5479 | * up by free_all_bootmem() once the early boot process is | 5479 | * up by memblock_free_all() once the early boot process is |
5480 | * done. Non-atomic initialization, single-pass. | 5480 | * done. Non-atomic initialization, single-pass. |
5481 | */ | 5481 | */ |
5482 | void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, | 5482 | void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, |
diff --git a/mm/page_poison.c b/mm/page_poison.c index aa2b3d34e8ea..f7e2a676365a 100644 --- a/mm/page_poison.c +++ b/mm/page_poison.c | |||
@@ -21,7 +21,7 @@ bool page_poisoning_enabled(void) | |||
21 | { | 21 | { |
22 | /* | 22 | /* |
23 | * Assumes that debug_pagealloc_enabled is set before | 23 | * Assumes that debug_pagealloc_enabled is set before |
24 | * free_all_bootmem. | 24 | * memblock_free_all. |
25 | * Page poisoning is debug page alloc for some arches. If | 25 | * Page poisoning is debug page alloc for some arches. If |
26 | * either of those options are enabled, enable poisoning. | 26 | * either of those options are enabled, enable poisoning. |
27 | */ | 27 | */ |