diff options
author | Pavel Tatashin <[email protected]> | 2018-10-26 15:10:21 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-10-26 16:38:15 -0700 |
commit | ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9 (patch) | |
tree | 55f96f2ba77f8adec219a61800e1ad7eafcba470 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 907ec5fca3dc38d37737de826f06f25b063aa08e (diff) |
mm: return zero_resv_unavail optimization
When checking for valid pfns in zero_resv_unavail(), it is not necessary
to verify that pfns within pageblock_nr_pages ranges are valid, only the
first one needs to be checked. This is because memory for pages are
allocated in contiguous chunks that contain pageblock_nr_pages struct
pages.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Pavel Tatashin <[email protected]>
Signed-off-by: Masayoshi Mizuma <[email protected]>
Reviewed-by: Masayoshi Mizuma <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions