mm/vmstat.c: uninline node_page_state()
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 6 Nov 2015 02:48:43 +0000 (18:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitc2d42c16ad83006a706d83e51a7268db04af733a
tree40ae08b6de5e852052ba16cc46e481efa53f0d1a
parent27f28b972e12a4080e5f5e4eb36b8224705652d4
mm/vmstat.c: uninline node_page_state()

With x86_64 (config http://ozlabs.org/~akpm/config-akpm2.txt) and old gcc
(4.4.4), drivers/base/node.c:node_read_meminfo() is using 2344 bytes of
stack.  Uninlining node_page_state() reduces this to 440 bytes.

The stack consumption issue is fixed by newer gcc (4.8.4) however with
that compiler this patch reduces the node.o text size from 7314 bytes to
4578.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vmstat.h
mm/vmstat.c