[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>
Showing
- arch/sparc64/mm/init.c 2 additions, 2 deletionsarch/sparc64/mm/init.c
- include/linux/swap.h 4 additions, 1 deletioninclude/linux/swap.h
- include/linux/vmstat.h 1 addition, 0 deletionsinclude/linux/vmstat.h
- kernel/power/main.c 3 additions, 1 deletionkernel/power/main.c
- mm/page_alloc.c 0 additions, 10 deletionsmm/page_alloc.c
Loading
Please register or sign in to comment