History

mm: rename free_area_init_node() to free_area_init_memoryless_node()

free_area_init_node() is only used by x86 to initialize a memory-less nodes. Make its name reflect this and drop all the function parameters except node ID as they are anyway zero.

Mike Rapoport committed 6 years ago

Commit bc9331a1 parent 51930df3 files · +6 −15Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mm.h+3−6
@@ -2329,8 +2329,7 @@ static inline spinlock_t *pud_lock(struct mm_struct *mm, pud_t *pud) · 2328 unmodified lines
2329}2329}
2330 2330
2331extern void __init pagecache_init(void);2331extern void __init pagecache_init(void);
2332extern void __init free_area_init_node(int nid, unsigned long * zones_size,2332extern void __init free_area_init_memoryless_node(int nid);
2333 unsigned long zone_start_pfn, unsigned long *zholes_size);
2334extern void free_initmem(void);2333extern void free_initmem(void);
2335 2334
2336/*2335/*
@@ -2402,10 +2401,8 @@ static inline unsigned long get_num_physpages(void) · 65 unmodified lines
2402 2401
2403/*2402/*
2404 * Using memblock node mappings, an architecture may initialise its2403 * Using memblock node mappings, an architecture may initialise its
2405 * zones, allocate the backing mem_map and account for memory holes in a more2404 * zones, allocate the backing mem_map and account for memory holes in an
2406 * architecture independent manner. This is a substitute for creating the2405 * architecture independent manner.
2407 * zone_sizes[] and zholes_size[] arrays and passing them to
2408 * free_area_init_node()
2409 *2406 *
2410 * An architecture is expected to register range of page frames backed by2407 * An architecture is expected to register range of page frames backed by
2411 * physical memory with memblock_add[_node]() before calling2408 * physical memory with memblock_add[_node]() before calling