diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 59ffcdbde8b3..237107c1b084 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/writeback.h> | 21 | #include <linux/writeback.h> |
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | #include <linux/backing-dev.h> | 23 | #include <linux/backing-dev.h> |
24 | #include <linux/task_io_accounting_ops.h> | ||
24 | #include <linux/blkdev.h> | 25 | #include <linux/blkdev.h> |
25 | #include <linux/mpage.h> | 26 | #include <linux/mpage.h> |
26 | #include <linux/rmap.h> | 27 | #include <linux/rmap.h> |
@@ -768,8 +769,10 @@ int __set_page_dirty_nobuffers(struct page *page) | |||
768 | mapping2 = page_mapping(page); | 769 | mapping2 = page_mapping(page); |
769 | if (mapping2) { /* Race with truncate? */ | 770 | if (mapping2) { /* Race with truncate? */ |
770 | BUG_ON(mapping2 != mapping); | 771 | BUG_ON(mapping2 != mapping); |
771 | if (mapping_cap_account_dirty(mapping)) | 772 | if (mapping_cap_account_dirty(mapping)) { |
772 | __inc_zone_page_state(page, NR_FILE_DIRTY); | 773 | __inc_zone_page_state(page, NR_FILE_DIRTY); |
774 | task_io_account_write(PAGE_CACHE_SIZE); | ||
775 | } | ||
773 | radix_tree_tag_set(&mapping->page_tree, | 776 | radix_tree_tag_set(&mapping->page_tree, |
774 | page_index(page), PAGECACHE_TAG_DIRTY); | 777 | page_index(page), PAGECACHE_TAG_DIRTY); |
775 | } | 778 | } |