Commit 5bd1455c authored by Brice Goglin's avatar Brice Goglin Committed by Linus Torvalds

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: default avatarBrice Goglin <Brice.Goglin@inria.fr>
Acked-by: default avatarChristoph Lameter <cl@linux-foundation.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3140a227
...@@ -848,12 +848,6 @@ static int do_move_page_to_node_array(struct mm_struct *mm, ...@@ -848,12 +848,6 @@ static int do_move_page_to_node_array(struct mm_struct *mm,
struct vm_area_struct *vma; struct vm_area_struct *vma;
struct page *page; 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; err = -EFAULT;
vma = find_vma(mm, pp->addr); vma = find_vma(mm, pp->addr);
if (!vma || !vma_migratable(vma)) if (!vma || !vma_migratable(vma))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment