mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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/[email protected] Signed-off-by: Minchan Kim <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1df631ae19
commit
e4b8222271
5 changed files with 25 additions and 21 deletions
|
|
@ -194,7 +194,7 @@ void putback_movable_pages(struct list_head *l)
|
|||
/*
|
||||
* Restore a potential migration pte to a working pte entry
|
||||
*/
|
||||
static int remove_migration_pte(struct page *page, struct vm_area_struct *vma,
|
||||
static bool remove_migration_pte(struct page *page, struct vm_area_struct *vma,
|
||||
unsigned long addr, void *old)
|
||||
{
|
||||
struct page_vma_mapped_walk pvmw = {
|
||||
|
|
@ -253,7 +253,7 @@ static int remove_migration_pte(struct page *page, struct vm_area_struct *vma,
|
|||
update_mmu_cache(vma, pvmw.address, pvmw.pte);
|
||||
}
|
||||
|
||||
return SWAP_AGAIN;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue