diff options
| author | Pavel Tatashin <[email protected]> | 2018-10-26 22:10:21 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-10-26 23:38:15 +0000 |
| commit | ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9 (patch) | |
| tree | 55f96f2ba77f8adec219a61800e1ad7eafcba470 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | mm: zero remaining unavailable struct pages (diff) | |
| download | kernel-ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9.tar.gz kernel-ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9.zip | |
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/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
