diff options
| author | Zhang Yanfei <[email protected]> | 2013-07-08 15:59:52 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-09 10:33:20 -0700 |
| commit | 7960aedde8cfa72e4caf488806ea7ea7d2fa8dba (patch) | |
| tree | 1d565e1ae9f59f7dfedff57bb30afbaec251d669 /tools | |
| parent | 609838cfed972d49a65aac7923a9ff5cbe482e30 (diff) | |
mm: remove duplicated call of get_pfn_range_for_nid
When calculating pages in a node, for each zone in that node, we will
have
zone_spanned_pages_in_node
--> get_pfn_range_for_nid
zone_absent_pages_in_node
--> get_pfn_range_for_nid
That is to say, we call the get_pfn_range_for_nid to get start_pfn and
end_pfn of the node for MAX_NR_ZONES * 2 times. And this is totally
unnecessary if we call the get_pfn_range_for_nid before
zone_*_pages_in_node add two extra arguments node_start_pfn and
node_end_pfn for zone_*_pages_in_node, then we can remove the
get_pfn_range_in_node in zone_*_pages_in_node.
[[email protected]: make definitions more readable]
Signed-off-by: Zhang Yanfei <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Wu Fengguang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions