[PATCH] Drop free_pages()
authorChristoph Lameter <clameter@sgi.com>
Sat, 10 Feb 2007 09:43:03 +0000 (01:43 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:18 +0000 (10:51 -0800)
commit96177299416dbccb73b54e6b344260154a445375
tree586454851d0fbbb365d6b12c852d5a7dd6b004f4
parent51ed4491271be8c56bdb2a03481ed34ea4984bc2
[PATCH] Drop free_pages()

nr_free_pages is now a simple access to a global variable.  Make it a macro
instead of a function.

The nr_free_pages now requires vmstat.h to be included.  There is one
occurrence in power management where we need to add the include.  Directly
refrer to global_page_state() there to clarify why the #include was added.

[akpm@osdl.org: arm build fix]
[akpm@osdl.org: sparc64 build fix]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sparc64/mm/init.c
include/linux/swap.h
include/linux/vmstat.h
kernel/power/main.c
mm/page_alloc.c