s390/mm: use _SEGMENT_ENTRY_EMPTY in the code
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Wed, 27 Apr 2016 09:43:07 +0000 (11:43 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Feb 2017 09:06:39 +0000 (10:06 +0100)
commit54397bb0bbedbb9f7d77a62f6ddc6869354e3d9f
tree22f09ed536c33c340bd40693235c644a1141927a
parent77759137248f34864a8f7a58bbcebfcf1047504a
s390/mm: use _SEGMENT_ENTRY_EMPTY in the code

_SEGMENT_ENTRY_INVALID denotes the invalid bit in a segment table
entry whereas _SEGMENT_ENTRY_EMPTY means that the value of the whole
entry is only the invalid bit, as the entry is completely empty.

Therefore we use _SEGMENT_ENTRY_INVALID only to check and set the
invalid bit with bitwise operations. _SEGMENT_ENTRY_EMPTY is only used
to check for (un)equality.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/mm/gmap.c
arch/s390/mm/hugetlbpage.c