diff options
author | Johannes Weiner <hannes@saeurebad.de> | 2008-07-24 00:27:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:16 -0400 |
commit | 9109fb7b3520de187ebc3646c209d66a233f7169 (patch) | |
tree | f1d64d2efafb8e1652836126523f1b36fb10acd1 /include | |
parent | 2185e69f680ae8c8496b6fc15e20c889d5b39b67 (diff) |
mm: drop unneeded pgdat argument from free_area_init_node()
free_area_init_node() gets passed in the node id as well as the node
descriptor. This is redundant as the function can trivially get the node
descriptor itself by means of NODE_DATA() and the node's id.
I checked all the users and NODE_DATA() seems to be usable everywhere
from where this function is called.
Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index f8071097302a..196924b657bc 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -962,9 +962,8 @@ static inline void pgtable_page_dtor(struct page *page) | |||
962 | NULL: pte_offset_kernel(pmd, address)) | 962 | NULL: pte_offset_kernel(pmd, address)) |
963 | 963 | ||
964 | extern void free_area_init(unsigned long * zones_size); | 964 | extern void free_area_init(unsigned long * zones_size); |
965 | extern void free_area_init_node(int nid, pg_data_t *pgdat, | 965 | extern void free_area_init_node(int nid, unsigned long * zones_size, |
966 | unsigned long * zones_size, unsigned long zone_start_pfn, | 966 | unsigned long zone_start_pfn, unsigned long *zholes_size); |
967 | unsigned long *zholes_size); | ||
968 | #ifdef CONFIG_ARCH_POPULATES_NODE_MAP | 967 | #ifdef CONFIG_ARCH_POPULATES_NODE_MAP |
969 | /* | 968 | /* |
970 | * With CONFIG_ARCH_POPULATES_NODE_MAP set, an architecture may initialise its | 969 | * With CONFIG_ARCH_POPULATES_NODE_MAP set, an architecture may initialise its |