Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "mm: make alloc_demote_folio externally invokable for migration"

This reverts commit a00ce85af2a1be494d3b0c9457e8e81cdcce2a89.

Commit a00ce85af2a1 ("mm: make alloc_demote_folio externally invokable for
migration") was made to let DAMOS_MIGRATE_{HOT,COLD} call the function.
But a previous commit made DAMOS_MIGRATE_{HOT,COLD} call
alloc_migration_target() instead. Hence there are no more callers of the
function outside of vmscan.c. Revert the commit to make the function
static again.

Link: https://lkml.kernel.org/r/20250616172346.67659-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Honggyu Kim <honggyu.kim@sk.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
e1b1fe45 29ea0409

+2 -2
-1
mm/internal.h
··· 1226 1226 unsigned long, unsigned long); 1227 1227 1228 1228 extern void set_pageblock_order(void); 1229 - struct folio *alloc_demote_folio(struct folio *src, unsigned long private); 1230 1229 unsigned long reclaim_pages(struct list_head *folio_list); 1231 1230 unsigned int reclaim_clean_pages_from_list(struct zone *zone, 1232 1231 struct list_head *folio_list);
+2 -1
mm/vmscan.c
··· 1006 1006 mapping->a_ops->is_dirty_writeback(folio, dirty, writeback); 1007 1007 } 1008 1008 1009 - struct folio *alloc_demote_folio(struct folio *src, unsigned long private) 1009 + static struct folio *alloc_demote_folio(struct folio *src, 1010 + unsigned long private) 1010 1011 { 1011 1012 struct folio *dst; 1012 1013 nodemask_t *allowed_mask;