aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorBrice Goglin <Brice.Goglin@inria.fr>2009-01-06 17:38:58 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:58:58 -0500
commit5bd1455c239672081d0e7f086e899b8cbc7a9844 (patch)
tree0ec4718a425c0bba91344f5be9810593ad4c6b3c /mm/migrate.c
parent3140a2273009c01c27d316f35ab76a37e105fdd8 (diff)
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>
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c6
1 files changed, 0 insertions, 6 deletions
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,
848 struct vm_area_struct *vma; 848 struct vm_area_struct *vma;
849 struct page *page; 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 err = -EFAULT; 851 err = -EFAULT;
858 vma = find_vma(mm, pp->addr); 852 vma = find_vma(mm, pp->addr);
859 if (!vma || !vma_migratable(vma)) 853 if (!vma || !vma_migratable(vma))