BACKPORT: mm: handle large folios in free_unref_folios()
Call folio_undo_large_rmappable() if needed. free_unref_page_prepare() destroys the ability to call folio_order(), so stash the order in folio->private for the benefit of the second loop. Link: https://lkml.kernel.org/r/20240227174254.710559-10-willy@infradead.org Change-Id: I7227614956f7f2bc7136694309e3be87a667d55e 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 31b2ff82) [ Replace folio_undo_large_rmappable() with folio_unqueue_deferred_split() - Kalesh Singh ] Bug: 420771453 Signed-off-by:
Kalesh Singh <kaleshsingh@google.com>
Loading
Please sign in to comment