diff options
author | Mel Gorman <[email protected]> | 2016-05-19 17:14:21 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-05-19 19:12:14 -0700 |
commit | da838d4fcba675cbf864f225d76f970e91220ee6 (patch) | |
tree | 165448850b88e5ce309ea92cc955c91836c868a4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bb552ac6c6b4f24e7a7b491286f87b63f9478d42 (diff) |
mm, page_alloc: pull out side effects from free_pages_check
Check without side-effects should be easier to maintain. It also
removes the duplicated cpupid and flags reset done in !DEBUG_VM variant
of both free_pcp_prepare() and then bulkfree_pcp_prepare(). Finally, it
enables the next patch.
It shouldn't result in new branches, thanks to inlining of the check.
!DEBUG_VM bloat-o-meter:
add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-27 (-27)
function old new delta
__free_pages_ok 748 739 -9
free_pcppages_bulk 1403 1385 -18
DEBUG_VM:
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-28 (-28)
function old new delta
free_pages_prepare 806 778 -28
This is also slightly faster because cpupid information is not set on
tail pages so we can avoid resets there.
Signed-off-by: Vlastimil Babka <[email protected]>
Signed-off-by: Mel Gorman <[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