aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-02-27 17:42:48 +0000
committerAndrew Morton <akpm@linux-foundation.org>2024-03-04 17:01:25 -0800
commit8b7b0a5eee22e3cd0468944d0720120c36340a2b (patch)
treef963214c2255cc9467d72b6ea3e48495ef06ef40 /mm
parentbe5a9e17a2ccbecfb7020aa1938e2c62d8a9189c (diff)
downloadlinux-8b7b0a5eee22e3cd0468944d0720120c36340a2b.tar.gz
mm: remove free_unref_page_list()
All callers now use free_unref_folios() so we can delete this function. Link: https://lkml.kernel.org/r/20240227174254.710559-15-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Ryan Roberts <ryan.roberts@arm.com> Cc: David Hildenbrand <david@redhat.com> Cc: Mel Gorman <mgorman@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/internal.h1
-rw-r--r--mm/page_alloc.c18
2 files changed, 0 insertions, 19 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 1dfdc3bde1b019..b1d806125e8d46 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -453,7 +453,6 @@ extern int user_min_free_kbytes;
void free_unref_page(struct page *page, unsigned int order);
void free_unref_folios(struct folio_batch *fbatch);
-void free_unref_page_list(struct list_head *list);
extern void zone_pcp_reset(struct zone *zone);
extern void zone_pcp_disable(struct zone *zone);
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 025ad1a7df7bc6..7873e937580245 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2605,24 +2605,6 @@ void free_unref_folios(struct folio_batch *folios)
folio_batch_reinit(folios);
}
-void free_unref_page_list(struct list_head *list)
-{
- struct folio_batch fbatch;
-
- folio_batch_init(&fbatch);
- while (!list_empty(list)) {
- struct folio *folio = list_first_entry(list, struct folio, lru);
-
- list_del(&folio->lru);
- if (folio_batch_add(&fbatch, folio) > 0)
- continue;
- free_unref_folios(&fbatch);
- }
-
- if (fbatch.nr)
- free_unref_folios(&fbatch);
-}
-
/*
* split_page takes a non-compound higher-order page, and splits it into
* n (1<<order) sub-pages: page[0..n]