diff options
Diffstat (limited to 'fs/proc/kcore.c')
-rw-r--r-- | fs/proc/kcore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 06ea155e1a59..5ed0e52d6aa0 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c | |||
@@ -255,8 +255,7 @@ static int kcore_update_ram(void) | |||
255 | end_pfn = 0; | 255 | end_pfn = 0; |
256 | for_each_node_state(nid, N_MEMORY) { | 256 | for_each_node_state(nid, N_MEMORY) { |
257 | unsigned long node_end; | 257 | unsigned long node_end; |
258 | node_end = NODE_DATA(nid)->node_start_pfn + | 258 | node_end = node_end_pfn(nid); |
259 | NODE_DATA(nid)->node_spanned_pages; | ||
260 | if (end_pfn < node_end) | 259 | if (end_pfn < node_end) |
261 | end_pfn = node_end; | 260 | end_pfn = node_end; |
262 | } | 261 | } |