KVM: PPC: Reduce calls to get current->mm by storing the value locally
authorLeonardo Bras <leonardo@linux.ibm.com>
Mon, 23 Sep 2019 21:30:23 +0000 (18:30 -0300)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 22 Oct 2019 05:29:01 +0000 (16:29 +1100)
commit258ed7d02843052d127df2264c8b342276ced18a
treee821ab28340648e4380cbcfc340b9567b2f1a86f
parent1a9167a214f560a23c5050ce6dfebae489528f0d
KVM: PPC: Reduce calls to get current->mm by storing the value locally

Reduces the number of calls to get_current() in order to get the value of
current->mm by doing it once and storing the value, since it is not
supposed to change inside the same process).

Signed-off-by: Leonardo Bras <leonardo@linux.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu_hv.c