aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 94159819a651..4dd91f7fd39f 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -1121,6 +1121,7 @@ void account_page_dirtied(struct page *page, struct address_space *mapping)
1121{ 1121{
1122 if (mapping_cap_account_dirty(mapping)) { 1122 if (mapping_cap_account_dirty(mapping)) {
1123 __inc_zone_page_state(page, NR_FILE_DIRTY); 1123 __inc_zone_page_state(page, NR_FILE_DIRTY);
1124 __inc_zone_page_state(page, NR_DIRTIED);
1124 __inc_bdi_stat(mapping->backing_dev_info, BDI_RECLAIMABLE); 1125 __inc_bdi_stat(mapping->backing_dev_info, BDI_RECLAIMABLE);
1125 task_dirty_inc(current); 1126 task_dirty_inc(current);
1126 task_io_account_write(PAGE_CACHE_SIZE); 1127 task_io_account_write(PAGE_CACHE_SIZE);
@@ -1136,6 +1137,7 @@ EXPORT_SYMBOL(account_page_dirtied);
1136void account_page_writeback(struct page *page) 1137void account_page_writeback(struct page *page)
1137{ 1138{
1138 inc_zone_page_state(page, NR_WRITEBACK); 1139 inc_zone_page_state(page, NR_WRITEBACK);
1140 inc_zone_page_state(page, NR_WRITTEN);
1139} 1141}
1140EXPORT_SYMBOL(account_page_writeback); 1142EXPORT_SYMBOL(account_page_writeback);
1141 1143