From: Brice Goglin Date: Tue, 6 Jan 2009 22:38:58 +0000 (-0800) Subject: mm: move_pages: no need to set pp->page to ZERO_PAGE(0) by default X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5bd1455c239672081d0e7f086e899b8cbc7a9844;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm: move_pages: no need to set pp->page to ZERO_PAGE(0) by default pp->page is never used when not set to the right page, so there is no need to set it to ZERO_PAGE(0) by default. Signed-off-by: Brice Goglin Acked-by: Christoph Lameter Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/migrate.c b/mm/migrate.c index 0a75716cb736..60510306c44a 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -848,12 +848,6 @@ static int do_move_page_to_node_array(struct mm_struct *mm, struct vm_area_struct *vma; struct page *page; - /* - * A valid page pointer that will not match any of the - * pages that will be moved. - */ - pp->page = ZERO_PAGE(0); - err = -EFAULT; vma = find_vma(mm, pp->addr); if (!vma || !vma_migratable(vma))