]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] merge page_test_dirty and page_clear_dirty
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 23 May 2011 08:24:39 +0000 (10:24 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 23 May 2011 08:24:31 +0000 (10:24 +0200)
commit2dbe1ea631b0ad28e1d8e752fcf3687974e3d73f
treeb9ef22867ce52e23b5249a7ad38637eec40363b8
parentdc82be478cd0e03ef758482938c18f975e964a4a
[S390] merge page_test_dirty and page_clear_dirty

The page_clear_dirty primitive always sets the default storage key
which resets the access control bits and the fetch protection bit.
That will surprise a KVM guest that sets non-zero access control
bits or the fetch protection bit. Merge page_test_dirty and
page_clear_dirty back to a single function and only clear the
dirty bit from the storage key.

In addition move the function page_test_and_clear_dirty and
page_test_and_clear_young to page.h where they belong. This
requires to change the parameter from a struct page * to a page
frame number.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/page.h
arch/s390/include/asm/pgtable.h
include/asm-generic/pgtable.h
include/linux/page-flags.h
mm/rmap.c