mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mm: remove unevictable_migrate_page function
unevictable_migrate_page() in mm/internal.h is a relic of the since removed UNEVICTABLE_LRU Kconfig option. This patch removes the function and open codes the test in migrate_page_copy(). Signed-off-by: Lee Schermerhorn <[email protected]> Reviewed-by: Christoph Lameter <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4eb2b1dcd5
commit
418b27ef50
2 changed files with 2 additions and 14 deletions
|
|
@ -288,8 +288,8 @@ static void migrate_page_copy(struct page *newpage, struct page *page)
|
|||
if (TestClearPageActive(page)) {
|
||||
VM_BUG_ON(PageUnevictable(page));
|
||||
SetPageActive(newpage);
|
||||
} else
|
||||
unevictable_migrate_page(newpage, page);
|
||||
} else if (TestClearPageUnevictable(page))
|
||||
SetPageUnevictable(newpage);
|
||||
if (PageChecked(page))
|
||||
SetPageChecked(newpage);
|
||||
if (PageMappedToDisk(page))
|
||||
|
|
|
|||
Loading…
Reference in a new issue