aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/s390/mm/fault.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-04-29 09:34:41 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-08-25 14:35:58 +0200
commit6e0a0431bf7d90ed0b8a0a974ad219617a70cc22 (patch)
tree964d7a595bba5c8cd84ae6a0d363fe9edaabc14e /arch/s390/mm/fault.c
parentKVM: s390/mm: readd address parameter to gmap_do_ipte_notify (diff)
downloadwireguard-linux-6e0a0431bf7d90ed0b8a0a974ad219617a70cc22.tar.xz
wireguard-linux-6e0a0431bf7d90ed0b8a0a974ad219617a70cc22.zip
KVM: s390/mm: cleanup gmap function arguments, variable names
Make the order of arguments for the gmap calls more consistent, if the gmap pointer is passed it is always the first argument. In addition distinguish between guest address and user address by naming the variables gaddr for a guest address and vmaddr for a user address. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/fault.c')
-rw-r--r--arch/s390/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index 3f3b35403d0a..4880399d040e 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -445,7 +445,7 @@ static inline int do_exception(struct pt_regs *regs, int access)
gmap = (struct gmap *)
((current->flags & PF_VCPU) ? S390_lowcore.gmap : 0);
if (gmap) {
- address = __gmap_fault(address, gmap);
+ address = __gmap_fault(gmap, address);
if (address == -EFAULT) {
fault = VM_FAULT_BADMAP;
goto out_up;