euleros inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8T1MB?from=project-issue CVE: NA
-------------------------------------------------
Expose reclaim_folio_list, so that etmem can exploit this for swapcache reclamation.
Signed-off-by: Yuchen Tang tangyuchen5@huawei.com Signed-off-by: tangyuchen tangyuchen5@huawei.com --- include/linux/swap.h | 2 ++ mm/vmscan.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/swap.h b/include/linux/swap.h index b47d288e657b..42bbdfd2fbb1 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -419,6 +419,8 @@ extern void lru_cache_add_inactive_or_unevictable(struct page *page, extern unsigned long zone_reclaimable_pages(struct zone *zone); extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order, gfp_t gfp_mask, nodemask_t *mask); +extern unsigned int reclaim_folio_list(struct list_head *folio_list, + struct pglist_data *pgdat); extern unsigned long reclaim_pages(struct list_head *folio_list);
#define MEMCG_RECLAIM_MAY_SWAP (1 << 1) diff --git a/mm/vmscan.c b/mm/vmscan.c index 3b670b1d2b61..fc3d70abc78e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2791,7 +2791,7 @@ static void shrink_active_list(unsigned long nr_to_scan, nr_deactivate, nr_rotated, sc->priority, file); }
-static unsigned int reclaim_folio_list(struct list_head *folio_list, +unsigned int reclaim_folio_list(struct list_head *folio_list, struct pglist_data *pgdat) { struct reclaim_stat dummy_stat;