summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorXishi Qiu <qiuxishi@huawei.com>2013-11-05 16:55:27 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-11-05 16:55:27 +1100
commit626251defeb3fa3f7b69704c2fd5c20d74efd433 (patch)
tree1239b51a08ce0bc5351c90582a99775cca9b2596 /fs
parentb8db7042bd3ddc289b5bc8310c82531fee12a812 (diff)
mm: use pgdat_end_pfn() to simplify the code in others
Use "pgdat_end_pfn()" instead of "pgdat->node_start_pfn + pgdat->node_spanned_pages". Simplify the code, no functional change. Signed-off-by: Xishi Qiu <qiuxishi@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/kcore.c3
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)
end_pfn = 0;
for_each_node_state(nid, N_MEMORY) {
unsigned long node_end;
- node_end = NODE_DATA(nid)->node_start_pfn +
- NODE_DATA(nid)->node_spanned_pages;
+ node_end = node_end_pfn(nid);
if (end_pfn < node_end)
end_pfn = node_end;
}