diff options
author | 2024-02-27 17:42:45 +0000 | |
---|---|---|
committer | 2024-03-04 17:01:25 -0800 | |
commit | bc2ff4cbc3294c01f29449405c42ee26ee0e1f59 (patch) | |
tree | 551f9a02091ff7a5c94fafae743618d3ab4eaffb /mm/memory.c | |
parent | mm: allow non-hugetlb large folios to be batch processed (diff) | |
download | wireguard-linux-bc2ff4cbc3294c01f29449405c42ee26ee0e1f59.tar.xz wireguard-linux-bc2ff4cbc3294c01f29449405c42ee26ee0e1f59.zip |
mm: free folios in a batch in shrink_folio_list()
Use free_unref_page_batch() to free the folios. This may increase the
number of IPIs from calling try_to_unmap_flush() more often, but that's
going to be very workload-dependent. It may even reduce the number of
IPIs as we now batch-free large folios instead of freeing them one at a
time.
Link: https://lkml.kernel.org/r/20240227174254.710559-12-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions