mm: correct arg in reclaim_pages()/reclaim_clean_pages_from_list()
Subsystems (3)
PATCH 1/1 mm: correct arg in reclaim_pages()/reclaim_clean_pages_from_list()
Both of them change the arg from page_list to folio_list when convert them to use a folio, but not the declaration, let's correct it, also move the reclaim_pages() from swap.h to internal.h as it only used in mm.
--- include/linux/swap.h | 1 - mm/internal.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/swap.h +0 -1
@@ -442,7 +442,6 @@ extern unsigned long shrink_all_memory(unsigned long nr_pages);extern int vm_swappiness;long remove_mapping (struct address_space *mapping,struct folio *folio); -extern unsigned long reclaim_pages (struct list_head *page_list);#ifdef CONFIG_NUMA extern int node_reclaim_mode;extern int sysctl_min_unmapped_ratio;
mm/internal.h +2 -1
@@ -804,8 +804,9 @@ extern unsigned long __must_check vm_mmap_pgoff(struct file *, unsigned long, unsigned long, unsigned long);extern void set_pageblock_order (void ); +unsigned long reclaim_pages (struct list_head *folio_list);unsigned int reclaim_clean_pages_from_list (struct zone *zone, -struct list_head *page_list); +struct list_head *folio_list);/* The ALLOC_WMARK bits are used as an index to zone->watermark */ #define ALLOC_WMARK_MIN WMARK_MIN#define ALLOC_WMARK_LOW WMARK_LOW
Signature · 1 line
2.35.3
Quoted 6 lines · Kefeng Wang
Both of them change the arg from
page_listtofolio_listwhen convert them to use a folio, but not the declaration, let's correct it, also move thereclaim_pages()fromswap.htointernal.has it only used in mm.Signed-off-by Kefeng Wang <[email protected]>
Quoted 6 lines · On Mon, 17 Apr 2023 19:48:07 +0800 Kefeng Wang <[email protected]>…
Both of them change the arg from
page_listtofolio_listwhen convert them to use a folio, but not the declaration, let's correct it, also move thereclaim_pages()fromswap.htointernal.has it only used in mm.Signed-off-by Kefeng Wang <[email protected]>
Thanks,
SJ
[...]
Quoted 7 lines · Kefeng Wang
Both of them change the arg from
page_listtofolio_listwhen convert them to use a folio, but not the declaration, let's correct it, also move thereclaim_pages()fromswap.htointernal.has it only used in mm.Signed-off-by Kefeng Wang <[email protected]>---
Signature · 3 lines
Thanks, David / dhildenb