]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/vmstat.c: uninline node_page_state()
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Oct 2015 22:03:13 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:13 +0000 (09:03 +1100)
commit461dea3ea4058d00741ad6bfa8e5f67996114192
tree871a2a31af9a55e023d74387832b266a8a99e8fd
parent540682b2dfa9ff2e8d5073e06a8d49156bb261ef
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>
include/linux/vmstat.h
mm/vmstat.c