sched/numa: fix setting of cpupid on page migration twice
authorWanpeng Li <[email protected]>
Thu, 23 Jan 2014 23:53:21 +0000 (15:53 -0800)
committerLinus Torvalds <[email protected]>
Fri, 24 Jan 2014 00:36:52 +0000 (16:36 -0800)
Commit 7851a45cd3f6 ("mm: numa: Copy cpupid on page migration") copiess
over the cpupid at page migration time.  It is unnecessary to set it
again in migrate_misplaced_transhuge_page().

Signed-off-by: Wanpeng Li <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/migrate.c

index 4b3996eb7f0f8e3b5f46e94edf5ede8d1003f978..734704f6f29b33dc8256463fcb9de1c23621d057 100644 (file)
@@ -1753,8 +1753,6 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm,
        if (!new_page)
                goto out_fail;
 
-       page_cpupid_xchg_last(new_page, page_cpupid_last(page));
-
        isolated = numamigrate_isolate_page(pgdat, page);
        if (!isolated) {
                put_page(new_page);