aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/page-writeback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 51b3eb6ab445..63512a9ed57e 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -987,6 +987,8 @@ int test_clear_page_writeback(struct page *page)
987 } else { 987 } else {
988 ret = TestClearPageWriteback(page); 988 ret = TestClearPageWriteback(page);
989 } 989 }
990 if (ret)
991 dec_zone_page_state(page, NR_WRITEBACK);
990 return ret; 992 return ret;
991} 993}
992 994
@@ -1012,6 +1014,8 @@ int test_set_page_writeback(struct page *page)
1012 } else { 1014 } else {
1013 ret = TestSetPageWriteback(page); 1015 ret = TestSetPageWriteback(page);
1014 } 1016 }
1017 if (!ret)
1018 inc_zone_page_state(page, NR_WRITEBACK);
1015 return ret; 1019 return ret;
1016 1020
1017} 1021}