aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 92e6757f196e..5f17fad1bee8 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -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 /*