Skip to content

Commit

Permalink
mm: move_pages: no need to set pp->page to ZERO_PAGE(0) by default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brice Goglin authored and Linus Torvalds committed Jan 6, 2009
1 parent 3140a22 commit 5bd1455
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5bd1455

Please sign in to comment.