]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Remove pointless checks in vmalloc_fault
authorToshi Kani <toshi.kani@hpe.com>
Wed, 14 Mar 2018 20:59:32 +0000 (14:59 -0600)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Mar 2018 14:27:47 +0000 (15:27 +0100)
commit21abb780c01a169f7f61d25ac65f6439570d6181
treedb2bc7b3a8e0c16871320017dea03852d2206ba9
parent4e52bc1a29fd35919a1256e689c5cdab3b56806e
x86/mm: Remove pointless checks in vmalloc_fault

vmalloc_fault() sets user's pgd or p4d from the kernel page table.  Once
it's set, all tables underneath are identical. There is no point of
following the same page table with two separate pointers and make sure they
see the same with BUG().

Remove the pointless checks in vmalloc_fault(). Also rename the kernel
pgd/p4d pointers to pgd_k/p4d_k so that their names are consistent in the
file.

Suggested-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Cc: Borislav Petkov <bp@alien8.de>
Cc: Gratian Crisan <gratian.crisan@ni.com>
Link: https://lkml.kernel.org/r/20180314205932.7193-1-toshi.kani@hpe.com
arch/x86/mm/fault.c