summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorLeonardo Bras <leonardo@linux.ibm.com>2019-11-26 19:36:31 -0300
committerPaul Mackerras <paulus@ozlabs.org>2020-01-17 15:08:28 +1100
commite1bd0a7e248c3ce59b0509e47f035c0759fc68a3 (patch)
tree73ad1b1031b51fde68223cde76f287fc773acca6 /arch/powerpc/include
parent8a9c8925149f195d0bbd6b42aa3130ced0a075fb (diff)
downloadlinux-e1bd0a7e248c3ce59b0509e47f035c0759fc68a3.tar.gz
linux-e1bd0a7e248c3ce59b0509e47f035c0759fc68a3.tar.bz2
linux-e1bd0a7e248c3ce59b0509e47f035c0759fc68a3.zip
KVM: PPC: Book3E: Replace current->mm by kvm->mm
Given that in kvm_create_vm() there is: kvm->mm = current->mm; And that on every kvm_*_ioctl we have: if (kvm->mm != current->mm) return -EIO; I see no reason to keep using current->mm instead of kvm->mm. By doing so, we would reduce the use of 'global' variables on code, relying more in the contents of kvm struct. Signed-off-by: Leonardo Bras <leonardo@linux.ibm.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions