]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/migrate.c: fix set cpupid on page migration twice against thp
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Fri, 3 Jan 2014 03:16:52 +0000 (14:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 9 Jan 2014 06:17:34 +0000 (17:17 +1100)
7851a45cd3 (mm: numa: Copy cpupid on page migration) copies over the
cpupid at page migration time.  It is unnecessary to set it again in
migrate_misplaced_transhuge_page().

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
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);