diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2010-10-25 10:10:14 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-10-25 10:10:15 -0400 |
commit | e2b8d7af0e3a9234de06606f9151f28cf847a8d6 (patch) | |
tree | 64bc03271383a43c2097b84b6f0e25c34ed13553 /mm/rmap.c | |
parent | 92f842eac7ee321c8a0749aba2513541b4ac226f (diff) |
[S390] add support for nonquiescing sske
Improve performance of the sske operation by using the nonquiescing
variant if the affected page has no mappings established. On machines
with no support for the new sske variant the mask bit will be ignored.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -745,7 +745,7 @@ int page_mkclean(struct page *page) | |||
745 | if (mapping) { | 745 | if (mapping) { |
746 | ret = page_mkclean_file(mapping, page); | 746 | ret = page_mkclean_file(mapping, page); |
747 | if (page_test_dirty(page)) { | 747 | if (page_test_dirty(page)) { |
748 | page_clear_dirty(page); | 748 | page_clear_dirty(page, 1); |
749 | ret = 1; | 749 | ret = 1; |
750 | } | 750 | } |
751 | } | 751 | } |
@@ -942,7 +942,7 @@ void page_remove_rmap(struct page *page) | |||
942 | * containing the swap entry, but page not yet written to swap. | 942 | * containing the swap entry, but page not yet written to swap. |
943 | */ | 943 | */ |
944 | if ((!PageAnon(page) || PageSwapCache(page)) && page_test_dirty(page)) { | 944 | if ((!PageAnon(page) || PageSwapCache(page)) && page_test_dirty(page)) { |
945 | page_clear_dirty(page); | 945 | page_clear_dirty(page, 1); |
946 | set_page_dirty(page); | 946 | set_page_dirty(page); |
947 | } | 947 | } |
948 | /* | 948 | /* |