|
@@ -21,6 +21,7 @@
|
|
|
#include <linux/writeback.h>
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/backing-dev.h>
|
|
|
+#include <linux/task_io_accounting_ops.h>
|
|
|
#include <linux/blkdev.h>
|
|
|
#include <linux/mpage.h>
|
|
|
#include <linux/rmap.h>
|
|
@@ -768,8 +769,10 @@ int __set_page_dirty_nobuffers(struct page *page)
|
|
|
mapping2 = page_mapping(page);
|
|
|
if (mapping2) { /* Race with truncate? */
|
|
|
BUG_ON(mapping2 != mapping);
|
|
|
- if (mapping_cap_account_dirty(mapping))
|
|
|
+ if (mapping_cap_account_dirty(mapping)) {
|
|
|
__inc_zone_page_state(page, NR_FILE_DIRTY);
|
|
|
+ task_io_account_write(PAGE_CACHE_SIZE);
|
|
|
+ }
|
|
|
radix_tree_tag_set(&mapping->page_tree,
|
|
|
page_index(page), PAGECACHE_TAG_DIRTY);
|
|
|
}
|