Skip to content

Commit 6c4614d

Browse files
Kefeng Wangakpm00
authored andcommitted
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. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kefeng Wang <[email protected]> Reviwed-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 9ab709e commit 6c4614d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/swap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ extern unsigned long shrink_all_memory(unsigned long nr_pages);
442442
extern int vm_swappiness;
443443
long remove_mapping(struct address_space *mapping, struct folio *folio);
444444

445-
extern unsigned long reclaim_pages(struct list_head *page_list);
446445
#ifdef CONFIG_NUMA
447446
extern int node_reclaim_mode;
448447
extern int sysctl_min_unmapped_ratio;

mm/internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,9 @@ extern unsigned long __must_check vm_mmap_pgoff(struct file *, unsigned long,
804804
unsigned long, unsigned long);
805805

806806
extern void set_pageblock_order(void);
807+
unsigned long reclaim_pages(struct list_head *folio_list);
807808
unsigned int reclaim_clean_pages_from_list(struct zone *zone,
808-
struct list_head *page_list);
809+
struct list_head *folio_list);
809810
/* The ALLOC_WMARK bits are used as an index to zone->watermark */
810811
#define ALLOC_WMARK_MIN WMARK_MIN
811812
#define ALLOC_WMARK_LOW WMARK_LOW

0 commit comments

Comments
 (0)