]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita05ceced76eb8206b5d7ce6e5845ab536de14e50
tree40ae08b6de5e852052ba16cc46e481efa53f0d1a
parent601b7a533e67a1de480fbac592dc9d26197e4187
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