Commit 5bd1455c239672081d0e7f086e899b8cbc7a9844

Authored by Brice Goglin
Committed by Linus Torvalds
1 parent 3140a22730

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 <Brice.Goglin@inria.fr>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff

... ... @@ -848,12 +848,6 @@
848 848 struct vm_area_struct *vma;
849 849 struct page *page;
850 850  
851   - /*
852   - * A valid page pointer that will not match any of the
853   - * pages that will be moved.
854   - */
855   - pp->page = ZERO_PAGE(0);
856   -
857 851 err = -EFAULT;
858 852 vma = find_vma(mm, pp->addr);
859 853 if (!vma || !vma_migratable(vma))