[S390] showmem: Only walk spanned pages.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 30 May 2008 08:03:29 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 30 May 2008 08:03:34 +0000 (10:03 +0200)
commitc1bb7f31eaef6ed6b9f895b99d9ea12e6b853606
tree3792e69ae8386707a483e64b377aeac51439f358
parent1760537b69123905bf4f4b56f5746ae4547e9694
[S390] showmem: Only walk spanned pages.

Convert show_mem() so its nearly the same as on x86/powerpc.
Gives us proper locking and we get also rid of the only use of max_mapnr.
Also the number of pages was contained in an int which might not be
sufficient not too far in the future.

Cc: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/init.c