]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] reference bit testing for unmapped pages
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 24 Jul 2011 08:47:59 +0000 (10:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 24 Jul 2011 08:48:00 +0000 (10:48 +0200)
commite6a2cc8db731850c3a908ef65303113a29b11507
tree320ff80a5a01ae6936ac0a83cffb99e1f50adccf
parent87d93899fa1d1c6e2f89f11a29cf857e0bdc03c0
[S390] reference bit testing for unmapped pages

On x86 a page without a mapper is by definition not referenced / old.
The s390 architecture keeps the reference bit in the storage key and
the current code will check the storage key for page without a mapper.
This leads to an interesting effect: the first time an s390 system
needs to write pages to swap it only finds referenced pages. This
causes a lot of pages to get added and written to the swap device.
To avoid this behaviour change page_referenced to query the storage
key only if there is a mapper of the page.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
mm/rmap.c