Commit d9303fbf authored by Yuchen Tang's avatar Yuchen Tang
Browse files

etmem: Expose symbol reclaim_folio_list

euleros inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I96X3J?from=project-issue


CVE: NA

-------------------------------------------------

Expose reclaim_folio_list, so that etmem can exploit this for
swapcache reclamation.

Signed-off-by: default avatarYuchen Tang <tangyuchen5@huawei.com>
Signed-off-by: default avatartangyuchen <tangyuchen5@huawei.com>
parent 97ba28f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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;