s390/mm,vmem: fix vmem_add_mem()/vmem_remove_range()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 8 Oct 2012 05:54:32 +0000 (07:54 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2012 12:17:01 +0000 (14:17 +0200)
commitfc7e48aad35bf98c84cf21aed5c2f100c5ce009b
tree1d33f49ac9705e1939cbe122d5aafb57aa7af07a
parentc972cc60c23f5a6309292bfcc91a441743ba027e
s390/mm,vmem: fix vmem_add_mem()/vmem_remove_range()

vmem_add_mem() should only then insert a large page if pmd_none() is true
for the specific entry. We might have a leftover from a previous mapping.
In addition make vmem_remove_range()'s page table walk code more complete
and fix a couple of potential endless loops (which can never happen :).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/vmem.c