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
23292329 }
23302330
23312331 extern void __init pagecache_init(void);
2332−extern void __init free_area_init_node(int nid, unsigned long * zones_size,
2333− unsigned long zone_start_pfn, unsigned long *zholes_size);
2332+extern void __init free_area_init_memoryless_node(int nid);
23342333 extern void free_initmem(void);
23352334
23362335 /*
@@ -2402,10 +2401,8 @@ static inline unsigned long get_num_physpages(void) · 65 unmodified lines
24022401
24032402 /*
24042403 * Using memblock node mappings, an architecture may initialise its
2405− * zones, allocate the backing mem_map and account for memory holes in a more
2406− * architecture independent manner. This is a substitute for creating the
2407− * zone_sizes[] and zholes_size[] arrays and passing them to
2408− * free_area_init_node()
2404+ * zones, allocate the backing mem_map and account for memory holes in an
2405+ * architecture independent manner.
24092406 *
24102407 * An architecture is expected to register range of page frames backed by
24112408 * physical memory with memblock_add[_node]() before calling