mm: drop unneeded pgdat argument from free_area_init_node()
authorJohannes Weiner <hannes@saeurebad.de>
Thu, 24 Jul 2008 04:27:20 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:16 +0000 (10:47 -0700)
commit9109fb7b3520de187ebc3646c209d66a233f7169
treef1d64d2efafb8e1652836126523f1b36fb10acd1
parent2185e69f680ae8c8496b6fc15e20c889d5b39b67
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>
16 files changed:
arch/alpha/mm/numa.c
arch/arm/mm/init.c
arch/avr32/mm/init.c
arch/cris/arch-v10/mm/init.c
arch/cris/arch-v32/mm/init.c
arch/m32r/mm/discontig.c
arch/m32r/mm/init.c
arch/m68k/mm/motorola.c
arch/m68k/mm/sun3mmu.c
arch/parisc/mm/init.c
arch/sparc/mm/srmmu.c
arch/sparc/mm/sun4c.c
arch/v850/kernel/setup.c
include/linux/mm.h
mm/memory_hotplug.c
mm/page_alloc.c