riscv: mm: Remove the copy operation of pmd
authorChuanhua Han <hanchuanhua@oppo.com>
Fri, 1 Apr 2022 02:43:20 +0000 (19:43 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 21 Apr 2022 00:36:58 +0000 (17:36 -0700)
commit7da9ca3f5b1e435eddcf539d60c0975d98dfa4b9
tree971eac979a6697cbc5f0d0b3a492382e34710a12
parent3123109284176b1532874591f7c81f3837bbdc17
riscv: mm: Remove the copy operation of pmd

Since all processes share the kernel address space,
we only need to copy pgd in case of a vmalloc page
fault exception, the other levels of page tables are
shared, so the operation of copying pmd is unnecessary.

Signed-off-by: Chuanhua Han <hanchuanhua@oppo.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/fault.c