x86: adjust vmalloc_sync_all() for Xen (2nd try)
commitcc643d4687533345fd8ebcba836f9ee25df7c458
authorJan Beulich <jbeulich@novell.com>
Fri, 29 Aug 2008 11:53:45 +0000 (29 12:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Sep 2008 17:48:01 +0000 (6 19:48 +0200)
treed19fbbb173681a9b8ded800edea3d0002036c7d1
parent913da64b54b2b3bb212a59aba2e6f2b8294ca1fa
x86: adjust vmalloc_sync_all() for Xen (2nd try)

Since the fourth PDPT entry cannot be shared under Xen,
vmalloc_sync_all() must iterate over pmd-s rather than pgd-s here.
Luckily, the code isn't used for native PAE (SHARED_KERNEL_PMD is 1)
and the change is benign to non-PAE.

Also do a little more cleanup in that function.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
arch/x86/mm/fault.c