]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mm/migrate.c: fix setting of cpupid on page migration twice against normal page
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Wed, 15 Jan 2014 05:56:07 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Jan 2014 05:54:00 +0000 (16:54 +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
alloc_misplaced_dst_page().

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c

index 734704f6f29b33dc8256463fcb9de1c23621d057..482a33d89134fd83e15d5f6863dae57f5cb05aac 100644 (file)
@@ -1548,8 +1548,6 @@ static struct page *alloc_misplaced_dst_page(struct page *page,
                                          __GFP_NOMEMALLOC | __GFP_NORETRY |
                                          __GFP_NOWARN) &
                                         ~GFP_IOFS, 0);
-       if (newpage)
-               page_cpupid_xchg_last(newpage, page_cpupid_last(page));
 
        return newpage;
 }