mm/pgtable: don't accumulate addr during pgd prepopulate pmd
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Mon, 8 Jul 2013 23:00:17 +0000 (16:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:23 +0000 (10:33 -0700)
commit73b44ff43c4b3cf517826da03c51948593f88753
treefc505d9d3ac4ed335548a4db8635e70cfa5460b7
parentf49cbdde495f62e1c2d906b16e833cec27de5e59
mm/pgtable: don't accumulate addr during pgd prepopulate pmd

The old codes accumulate addr to get right pmd, however, currently pmds
are preallocated and transfered as a parameter, there is unnecessary to
accumulate addr variable any more, this patch remove it.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/mm/pgtable.c