summaryrefslogtreecommitdiffstats
path: root/mm/page_idle.c
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2017-05-03 17:54:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-03 18:52:10 -0400
commite4b82222712ed15813d35204c91429883d27d1d9 (patch)
tree99454032438d5ee42907cc08f930d59ab7cedebd /mm/page_idle.c
parent1df631ae19819cff343d316eda42eca32d3de7fc (diff)
mm: make rmap_one boolean function
rmap_one's return value controls whether rmap_work should contine to scan other ptes or not so it's target for changing to boolean. Return true if the scan should be continued. Otherwise, return false to stop the scanning. This patch makes rmap_one's return value to boolean. Link: http://lkml.kernel.org/r/1489555493-14659-10-git-send-email-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com> Cc: Hillf Danton <hillf.zj@alibaba-inc.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_idle.c')
-rw-r--r--mm/page_idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_idle.c b/mm/page_idle.c
index b0ee56c56b58..1b0f48c62316 100644
--- a/mm/page_idle.c
+++ b/mm/page_idle.c
@@ -50,7 +50,7 @@ static struct page *page_idle_get_page(unsigned long pfn)
50 return page; 50 return page;
51} 51}
52 52
53static int page_idle_clear_pte_refs_one(struct page *page, 53static bool page_idle_clear_pte_refs_one(struct page *page,
54 struct vm_area_struct *vma, 54 struct vm_area_struct *vma,
55 unsigned long addr, void *arg) 55 unsigned long addr, void *arg)
56{ 56{
@@ -84,7 +84,7 @@ static int page_idle_clear_pte_refs_one(struct page *page,
84 */ 84 */
85 set_page_young(page); 85 set_page_young(page);
86 } 86 }
87 return SWAP_AGAIN; 87 return true;
88} 88}
89 89
90static void page_idle_clear_pte_refs(struct page *page) 90static void page_idle_clear_pte_refs(struct page *page)