]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] split page_test_and_clear_dirty.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Apr 2007 14:01:57 +0000 (16:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Apr 2007 14:01:46 +0000 (16:01 +0200)
commit8104a5e89c6a274595ecf5234511805eaa62324f
tree2eb89d89a22380298d64edad59010c1d0a59e5a4
parent91743e273805237076948d338e4eae0a30ba6242
[S390] split page_test_and_clear_dirty.

The page_test_and_clear_dirty primitive really consists of two
operations, page_test_dirty and the page_clear_dirty. The combination
of the two is not an atomic operation, so it makes more sense to have
two separate operations instead of one.
In addition to the improved readability of the s390 version of
SetPageUptodate, it now avoids the page_test_dirty operation which is
an insert-storage-key-extended (iske) instruction which is an expensive
operation.

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