mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]>
This commit is contained in:
parent
92f842eac7
commit
e2b8d7af0e
7 changed files with 18 additions and 12 deletions
|
|
@ -745,7 +745,7 @@ int page_mkclean(struct page *page)
|
|||
if (mapping) {
|
||||
ret = page_mkclean_file(mapping, page);
|
||||
if (page_test_dirty(page)) {
|
||||
page_clear_dirty(page);
|
||||
page_clear_dirty(page, 1);
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
|
|
@ -942,7 +942,7 @@ void page_remove_rmap(struct page *page)
|
|||
* containing the swap entry, but page not yet written to swap.
|
||||
*/
|
||||
if ((!PageAnon(page) || PageSwapCache(page)) && page_test_dirty(page)) {
|
||||
page_clear_dirty(page);
|
||||
page_clear_dirty(page, 1);
|
||||
set_page_dirty(page);
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue