mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6408068ee6
commit
83285c72e0
3 changed files with 6 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue