mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] Swapless page migration: rip out swap based logic
Rip the page migration logic out. Remove all code that has to do with swapping during page migration. This also guts the ability to migrate pages to swap. No one used that so lets let it go for good. Page migration should be a bit broken after this patch. Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0697212a41
commit
d75a0fcda2
4 changed files with 3 additions and 120 deletions
|
|
@ -618,15 +618,6 @@ static int unuse_mm(struct mm_struct *mm,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MIGRATION
|
||||
int remove_vma_swap(struct vm_area_struct *vma, struct page *page)
|
||||
{
|
||||
swp_entry_t entry = { .val = page_private(page) };
|
||||
|
||||
return unuse_vma(vma, entry, page);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Scan swap_map from current position to next entry still in use.
|
||||
* Recycle to start on reaching the end, returning 0 when empty.
|
||||
|
|
|
|||
Loading…
Reference in a new issue