BACKPORT: mm: add free_unref_folios()
Iterate over a folio_batch rather than a linked list. This is easier for the CPU to prefetch and has a batch count naturally built in so we don't need to track it. Again, this lowers the maximum lock hold time from 32 folios to 15, but I do not expect this to have a significant effect. Link: https://lkml.kernel.org/r/20240227174254.710559-4-willy@infradead.org Change-Id: Ib5c121c102dfd302c72771645a0f751c1be23608 Signed-off-by:Matthew Wilcox (Oracle) <willy@infradead.org> Cc: David Hildenbrand <david@redhat.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> (cherry picked from commit 90491d87) Bug: 420771453 [ Move trace_android_vh_free_unref_page_list_bypass into new free_unref_page_list() - Kalesh Singh ] Signed-off-by:
Kalesh Singh <kaleshsingh@google.com>
Loading
Please sign in to comment