diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2021-11-05 13:37:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-11-06 13:30:35 -0700 |
| commit | 988c69f1bc23fe632ea5e6eb3c26a9e103c3ed41 (patch) | |
| tree | f8d25d3f624b0d340bcf325c043b18969033b208 /tools/perf/scripts/python | |
| parent | 642929a2ded029aac13b8cb91bc9b7c088ddb57f (diff) | |
mm: optimise put_pages_list()
Instead of calling put_page() one page at a time, pop pages off the list
if their refcount was too high and pass the remainder to
put_unref_page_list(). This should be a speed improvement, but I have
no measurements to support that. Current callers do not care about
performance, but I hope to add some which do.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Anthony Yznaga <[email protected]>
Cc: 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')
0 files changed, 0 insertions, 0 deletions