Skip to content

Commit 5bd1455

Browse files
bgoglintorvalds
authored andcommitted
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 <[email protected]> Acked-by: Christoph Lameter <[email protected]> Cc: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3140a22 commit 5bd1455

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mm/migrate.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -848,12 +848,6 @@ static int do_move_page_to_node_array(struct mm_struct *mm,
848848
struct vm_area_struct *vma;
849849
struct page *page;
850850

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-
857851
err = -EFAULT;
858852
vma = find_vma(mm, pp->addr);
859853
if (!vma || !vma_migratable(vma))

0 commit comments

Comments
 (0)