diff options
author | Leonardo Bras <leonardo@linux.ibm.com> | 2019-11-26 19:36:30 -0300 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2020-01-17 15:08:28 +1100 |
commit | 8a9c8925149f195d0bbd6b42aa3130ced0a075fb (patch) | |
tree | c42a379e012ac386ae759986abb10167762dfcc7 /scripts/bpf_helpers_doc.py | |
parent | 4de0a8355463e068e443b48eb5ae32370155368b (diff) |
KVM: PPC: Book3S: 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 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions