Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: switch node meminfo Active & Inactive pages to Kbytes

There is a bug in the output of /sys/devices/system/node/node[n]/meminfo
where the Active and Inactive values are in pages instead of Kbytes.

Looks like this occurred back in 2.6.20 when the code was changed
over to use node_page_state().

Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

John Blackwood and committed by
Linus Torvalds
2d5c1be8 acb7669c

+2 -2
+2 -2
drivers/base/node.c
··· 84 84 nid, K(i.totalram), 85 85 nid, K(i.freeram), 86 86 nid, K(i.totalram - i.freeram), 87 - nid, node_page_state(nid, NR_ACTIVE), 88 - nid, node_page_state(nid, NR_INACTIVE), 87 + nid, K(node_page_state(nid, NR_ACTIVE)), 88 + nid, K(node_page_state(nid, NR_INACTIVE)), 89 89 #ifdef CONFIG_HIGHMEM 90 90 nid, K(i.totalhigh), 91 91 nid, K(i.freehigh),