]> git.baikalelectronics.ru Git - kernel.git/commit
x86-64: Fix page table accounting
authorJan Beulich <JBeulich@suse.com>
Thu, 4 Oct 2012 13:48:10 +0000 (14:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Oct 2012 08:50:25 +0000 (10:50 +0200)
commita420a2ea941f6506623f67b2944c75b16dc275aa
tree3acb8c5c40f379a27d4fe26dd13f317715fbe73d
parent2831fe420858febc2b831c37d7b648a11060792e
x86-64: Fix page table accounting

Commit 19c9a69eb4d4bbd299fb05d194c77109b6eeeffb ("x86-64: Fix
accounting in kernel_physical_mapping_init()") went a little too
far by entirely removing the counting of pre-populated page
tables: this should be done at boot time (to cover the page
tables set up in early boot code), but shouldn't be done during
memory hot add.

Hence, re-add the removed increments of "pages", but make them
and the one in phys_pte_init() conditional upon !after_bootmem.

Reported-Acked-and-Tested-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: <stable@kernel.org>
Link: http://lkml.kernel.org/r/506DAFBA020000780009FA8C@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/init_64.c