|
@@ -105,13 +105,7 @@ static int ceph_set_page_dirty(struct page *page)
|
|
|
spin_lock_irq(&mapping->tree_lock);
|
|
|
if (page->mapping) { /* Race with truncate? */
|
|
|
WARN_ON_ONCE(!PageUptodate(page));
|
|
|
-
|
|
|
- if (mapping_cap_account_dirty(mapping)) {
|
|
|
- __inc_zone_page_state(page, NR_FILE_DIRTY);
|
|
|
- __inc_bdi_stat(mapping->backing_dev_info,
|
|
|
- BDI_RECLAIMABLE);
|
|
|
- task_io_account_write(PAGE_CACHE_SIZE);
|
|
|
- }
|
|
|
+ account_page_dirtied(page, page->mapping);
|
|
|
radix_tree_tag_set(&mapping->page_tree,
|
|
|
page_index(page), PAGECACHE_TAG_DIRTY);
|
|
|
|