diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/node.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index e9b0957f15d1..001e6f6b9c1b 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c | |||
@@ -54,10 +54,12 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | |||
54 | "Node %d MemUsed: %8lu kB\n" | 54 | "Node %d MemUsed: %8lu kB\n" |
55 | "Node %d Active: %8lu kB\n" | 55 | "Node %d Active: %8lu kB\n" |
56 | "Node %d Inactive: %8lu kB\n" | 56 | "Node %d Inactive: %8lu kB\n" |
57 | #ifdef CONFIG_HIGHMEM | ||
57 | "Node %d HighTotal: %8lu kB\n" | 58 | "Node %d HighTotal: %8lu kB\n" |
58 | "Node %d HighFree: %8lu kB\n" | 59 | "Node %d HighFree: %8lu kB\n" |
59 | "Node %d LowTotal: %8lu kB\n" | 60 | "Node %d LowTotal: %8lu kB\n" |
60 | "Node %d LowFree: %8lu kB\n" | 61 | "Node %d LowFree: %8lu kB\n" |
62 | #endif | ||
61 | "Node %d Dirty: %8lu kB\n" | 63 | "Node %d Dirty: %8lu kB\n" |
62 | "Node %d Writeback: %8lu kB\n" | 64 | "Node %d Writeback: %8lu kB\n" |
63 | "Node %d FilePages: %8lu kB\n" | 65 | "Node %d FilePages: %8lu kB\n" |
@@ -66,16 +68,20 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | |||
66 | "Node %d PageTables: %8lu kB\n" | 68 | "Node %d PageTables: %8lu kB\n" |
67 | "Node %d NFS_Unstable: %8lu kB\n" | 69 | "Node %d NFS_Unstable: %8lu kB\n" |
68 | "Node %d Bounce: %8lu kB\n" | 70 | "Node %d Bounce: %8lu kB\n" |
69 | "Node %d Slab: %8lu kB\n", | 71 | "Node %d Slab: %8lu kB\n" |
72 | "Node %d SReclaimable: %8lu kB\n" | ||
73 | "Node %d SUnreclaim: %8lu kB\n", | ||
70 | nid, K(i.totalram), | 74 | nid, K(i.totalram), |
71 | nid, K(i.freeram), | 75 | nid, K(i.freeram), |
72 | nid, K(i.totalram - i.freeram), | 76 | nid, K(i.totalram - i.freeram), |
73 | nid, K(active), | 77 | nid, K(active), |
74 | nid, K(inactive), | 78 | nid, K(inactive), |
79 | #ifdef CONFIG_HIGHMEM | ||
75 | nid, K(i.totalhigh), | 80 | nid, K(i.totalhigh), |
76 | nid, K(i.freehigh), | 81 | nid, K(i.freehigh), |
77 | nid, K(i.totalram - i.totalhigh), | 82 | nid, K(i.totalram - i.totalhigh), |
78 | nid, K(i.freeram - i.freehigh), | 83 | nid, K(i.freeram - i.freehigh), |
84 | #endif | ||
79 | nid, K(node_page_state(nid, NR_FILE_DIRTY)), | 85 | nid, K(node_page_state(nid, NR_FILE_DIRTY)), |
80 | nid, K(node_page_state(nid, NR_WRITEBACK)), | 86 | nid, K(node_page_state(nid, NR_WRITEBACK)), |
81 | nid, K(node_page_state(nid, NR_FILE_PAGES)), | 87 | nid, K(node_page_state(nid, NR_FILE_PAGES)), |
@@ -84,7 +90,10 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | |||
84 | nid, K(node_page_state(nid, NR_PAGETABLE)), | 90 | nid, K(node_page_state(nid, NR_PAGETABLE)), |
85 | nid, K(node_page_state(nid, NR_UNSTABLE_NFS)), | 91 | nid, K(node_page_state(nid, NR_UNSTABLE_NFS)), |
86 | nid, K(node_page_state(nid, NR_BOUNCE)), | 92 | nid, K(node_page_state(nid, NR_BOUNCE)), |
87 | nid, K(node_page_state(nid, NR_SLAB))); | 93 | nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE) + |
94 | node_page_state(nid, NR_SLAB_UNRECLAIMABLE)), | ||
95 | nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE)), | ||
96 | nid, K(node_page_state(nid, NR_SLAB_UNRECLAIMABLE))); | ||
88 | n += hugetlb_report_node_meminfo(nid, buf + n); | 97 | n += hugetlb_report_node_meminfo(nid, buf + n); |
89 | return n; | 98 | return n; |
90 | } | 99 | } |