Skip to content

Commit c6ffc5c

Browse files
rppttorvalds
authored andcommitted
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>
1 parent 53ab85e commit c6ffc5c

File tree

35 files changed

+39
-39
lines changed

35 files changed

+39
-39
lines changed

arch/alpha/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ mem_init(void)
282282
{
283283
set_max_mapnr(max_low_pfn);
284284
high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
285-
free_all_bootmem();
285+
memblock_free_all();
286286
mem_init_print_info(NULL);
287287
}
288288

arch/arc/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void __init mem_init(void)
218218
free_highmem_page(pfn_to_page(tmp));
219219
#endif
220220

221-
free_all_bootmem();
221+
memblock_free_all();
222222
mem_init_print_info(NULL);
223223
}
224224

arch/arm/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ void __init mem_init(void)
508508

509509
/* this will put all unused low memory onto the freelists */
510510
free_unused_memmap();
511-
free_all_bootmem();
511+
memblock_free_all();
512512

513513
#ifdef CONFIG_SA1111
514514
/* now that our DMA memory is actually so designated, we can free it */

arch/arm64/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ void __init mem_init(void)
599599
free_unused_memmap();
600600
#endif
601601
/* this will put all unused low memory onto the freelists */
602-
free_all_bootmem();
602+
memblock_free_all();
603603

604604
kexec_reserve_crashkres_pages();
605605

arch/c6x/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void __init mem_init(void)
6262
high_memory = (void *)(memory_end & PAGE_MASK);
6363

6464
/* this will put all memory onto the freelists */
65-
free_all_bootmem();
65+
memblock_free_all();
6666

6767
mem_init_print_info(NULL);
6868
}

arch/h8300/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void __init mem_init(void)
9696
max_mapnr = MAP_NR(high_memory);
9797

9898
/* this will put all low memory onto the freelists */
99-
free_all_bootmem();
99+
memblock_free_all();
100100

101101
mem_init_print_info(NULL);
102102
}

arch/hexagon/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ unsigned long long kmap_generation;
6868
void __init mem_init(void)
6969
{
7070
/* No idea where this is actually declared. Seems to evade LXR. */
71-
free_all_bootmem();
71+
memblock_free_all();
7272
mem_init_print_info(NULL);
7373

7474
/*

arch/ia64/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ mem_init (void)
627627

628628
set_max_mapnr(max_low_pfn);
629629
high_memory = __va(max_low_pfn * PAGE_SIZE);
630-
free_all_bootmem();
630+
memblock_free_all();
631631
mem_init_print_info(NULL);
632632

633633
/*

arch/m68k/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static inline void init_pointer_tables(void)
140140
void __init mem_init(void)
141141
{
142142
/* this will put all memory onto the freelists */
143-
free_all_bootmem();
143+
memblock_free_all();
144144
init_pointer_tables();
145145
mem_init_print_info(NULL);
146146
}

arch/microblaze/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void __init mem_init(void)
204204
high_memory = (void *)__va(memory_start + lowmem_size - 1);
205205

206206
/* this will put all memory onto the freelists */
207-
free_all_bootmem();
207+
memblock_free_all();
208208
#ifdef CONFIG_HIGHMEM
209209
highmem_setup();
210210
#endif

arch/mips/loongson64/loongson-3/numa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void __init paging_init(void)
272272
void __init mem_init(void)
273273
{
274274
high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
275-
free_all_bootmem();
275+
memblock_free_all();
276276
setup_zero_pages(); /* This comes from node 0 */
277277
mem_init_print_info(NULL);
278278
}

arch/mips/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ void __init mem_init(void)
463463
high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT);
464464

465465
maar_init();
466-
free_all_bootmem();
466+
memblock_free_all();
467467
setup_zero_pages(); /* Setup zeroed pages. */
468468
mem_init_free_highmem();
469469
mem_init_print_info(NULL);

arch/mips/sgi-ip27/ip27-memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void __init paging_init(void)
475475
void __init mem_init(void)
476476
{
477477
high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
478-
free_all_bootmem();
478+
memblock_free_all();
479479
setup_zero_pages(); /* This comes from node 0 */
480480
mem_init_print_info(NULL);
481481
}

arch/nds32/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void __init mem_init(void)
192192
free_highmem();
193193

194194
/* this will put all low memory onto the freelists */
195-
free_all_bootmem();
195+
memblock_free_all();
196196
mem_init_print_info(NULL);
197197

198198
pr_info("virtual kernel memory layout:\n"

arch/nios2/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void __init mem_init(void)
7373
high_memory = __va(end_mem);
7474

7575
/* this will put all memory onto the freelists */
76-
free_all_bootmem();
76+
memblock_free_all();
7777
mem_init_print_info(NULL);
7878
}
7979

arch/openrisc/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void __init mem_init(void)
213213
memset((void *)empty_zero_page, 0, PAGE_SIZE);
214214

215215
/* this will put all low memory onto the freelists */
216-
free_all_bootmem();
216+
memblock_free_all();
217217

218218
mem_init_print_info(NULL);
219219

arch/parisc/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ void __init mem_init(void)
621621

622622
high_memory = __va((max_pfn << PAGE_SHIFT));
623623
set_max_mapnr(page_to_pfn(virt_to_page(high_memory - 1)) + 1);
624-
free_all_bootmem();
624+
memblock_free_all();
625625

626626
#ifdef CONFIG_PA11
627627
if (boot_cpu_data.cpu_type == pcxl2 || boot_cpu_data.cpu_type == pcxl) {

arch/powerpc/mm/mem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ void __init mem_init(void)
349349

350350
high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
351351
set_max_mapnr(max_pfn);
352-
free_all_bootmem();
352+
memblock_free_all();
353353

354354
#ifdef CONFIG_HIGHMEM
355355
{

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void __init mem_init(void)
5555
#endif /* CONFIG_FLATMEM */
5656

5757
high_memory = (void *)(__va(PFN_PHYS(max_low_pfn)));
58-
free_all_bootmem();
58+
memblock_free_all();
5959

6060
mem_init_print_info(NULL);
6161
}

arch/s390/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void __init mem_init(void)
139139
cmma_init();
140140

141141
/* this will put all low memory onto the freelists */
142-
free_all_bootmem();
142+
memblock_free_all();
143143
setup_zero_pages(); /* Setup zeroed pages. */
144144

145145
cmma_init_nodat();

arch/sh/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void __init mem_init(void)
350350
high_memory = max_t(void *, high_memory,
351351
__va(pgdat_end_pfn(pgdat) << PAGE_SHIFT));
352352

353-
free_all_bootmem();
353+
memblock_free_all();
354354

355355
/* Set this up early, so we can take care of the zero page */
356356
cpu_cache_init();

arch/sparc/mm/init_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void __init mem_init(void)
277277

278278
max_mapnr = last_valid_pfn - pfn_base;
279279
high_memory = __va(max_low_pfn << PAGE_SHIFT);
280-
free_all_bootmem();
280+
memblock_free_all();
281281

282282
for (i = 0; sp_banks[i].num_bytes != 0; i++) {
283283
unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT;

arch/sparc/mm/init_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,12 +2545,12 @@ void __init mem_init(void)
25452545
{
25462546
high_memory = __va(last_valid_pfn << PAGE_SHIFT);
25472547

2548-
free_all_bootmem();
2548+
memblock_free_all();
25492549

25502550
/*
25512551
* Must be done after boot memory is put on freelist, because here we
25522552
* 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
25542554
* deferred pages for us.
25552555
*/
25562556
register_page_bootmem_info();

arch/um/kernel/mem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void __init mem_init(void)
5151
uml_reserved = brk_end;
5252

5353
/* this will put all low memory onto the freelists */
54-
free_all_bootmem();
54+
memblock_free_all();
5555
max_low_pfn = totalram_pages;
5656
max_pfn = totalram_pages;
5757
mem_init_print_info(NULL);

arch/unicore32/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void __init mem_init(void)
286286
free_unused_memmap(&meminfo);
287287

288288
/* this will put all unused low memory onto the freelists */
289-
free_all_bootmem();
289+
memblock_free_all();
290290

291291
mem_init_print_info(NULL);
292292
printk(KERN_NOTICE "Virtual kernel memory layout:\n"

arch/x86/mm/highmem_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void __init set_highmem_pages_init(void)
111111

112112
/*
113113
* Explicitly reset zone->managed_pages because set_highmem_pages_init()
114-
* is invoked before free_all_bootmem()
114+
* is invoked before memblock_free_all()
115115
*/
116116
reset_all_zones_managed_pages();
117117
for_each_zone(zone) {

arch/x86/mm/init_32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ void __init mem_init(void)
771771
#endif
772772
/*
773773
* 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
775775
* temporary data (see find_range_array()) and for this purpose can use
776776
* pages that was already passed to the buddy allocator, hence marked as
777777
* not accessible in the page tables when compiled with
@@ -781,7 +781,7 @@ void __init mem_init(void)
781781
set_highmem_pages_init();
782782

783783
/* this will put all low memory onto the freelists */
784-
free_all_bootmem();
784+
memblock_free_all();
785785

786786
after_bootmem = 1;
787787
x86_init.hyper.init_after_bootmem();

arch/x86/mm/init_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,14 +1188,14 @@ void __init mem_init(void)
11881188
/* clear_bss() already clear the empty_zero_page */
11891189

11901190
/* this will put all memory onto the freelists */
1191-
free_all_bootmem();
1191+
memblock_free_all();
11921192
after_bootmem = 1;
11931193
x86_init.hyper.init_after_bootmem();
11941194

11951195
/*
11961196
* Must be done after boot memory is put on freelist, because here we
11971197
* 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
11991199
* deferred pages for us.
12001200
*/
12011201
register_page_bootmem_info();

arch/x86/xen/mmu_pv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static int __init xen_mark_pinned(struct mm_struct *mm, struct page *page,
864864
* The init_mm pagetable is really pinned as soon as its created, but
865865
* that's before we have page structures to store the bits. So do all
866866
* 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.
868868
*/
869869
static void __init xen_after_bootmem(void)
870870
{

arch/xtensa/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void __init mem_init(void)
152152
max_mapnr = max_pfn - ARCH_PFN_OFFSET;
153153
high_memory = (void *)__va(max_low_pfn << PAGE_SHIFT);
154154

155-
free_all_bootmem();
155+
memblock_free_all();
156156

157157
mem_init_print_info(NULL);
158158
pr_info("virtual kernel memory layout:\n"

include/linux/bootmem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern unsigned long max_pfn;
2626
*/
2727
extern unsigned long long max_possible_pfn;
2828

29-
extern unsigned long free_all_bootmem(void);
29+
extern unsigned long memblock_free_all(void);
3030
extern void reset_node_managed_pages(pg_data_t *pgdat);
3131
extern void reset_all_zones_managed_pages(void);
3232

mm/memblock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ static void * __init memblock_alloc_internal(
13601360
/*
13611361
* Detect any accidental use of these APIs after slab is ready, as at
13621362
* 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)
13641364
*/
13651365
if (WARN_ON_ONCE(slab_is_available()))
13661366
return kzalloc_node(size, GFP_NOWAIT, nid);

mm/nobootmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ void __init reset_all_zones_managed_pages(void)
111111
}
112112

113113
/**
114-
* free_all_bootmem - release free pages to the buddy allocator
114+
* memblock_free_all - release free pages to the buddy allocator
115115
*
116116
* Return: the number of pages actually released.
117117
*/
118-
unsigned long __init free_all_bootmem(void)
118+
unsigned long __init memblock_free_all(void)
119119
{
120120
unsigned long pages;
121121

mm/page_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5476,7 +5476,7 @@ overlap_memmap_init(unsigned long zone, unsigned long *pfn)
54765476

54775477
/*
54785478
* 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
54805480
* done. Non-atomic initialization, single-pass.
54815481
*/
54825482
void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone,

mm/page_poison.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bool page_poisoning_enabled(void)
2121
{
2222
/*
2323
* Assumes that debug_pagealloc_enabled is set before
24-
* free_all_bootmem.
24+
* memblock_free_all.
2525
* Page poisoning is debug page alloc for some arches. If
2626
* either of those options are enabled, enable poisoning.
2727
*/

0 commit comments

Comments
 (0)