/* Helper function for set_page_dirty family. NOTE: This relies on being atomic wrt interrupts.  */
void account_page_dirtied(struct page *page, struct address_space *mapping)
/* Helper function for set_page_dirty family. NOTE: This relies on being atomic wrt interrupts.  */
void account_page_dirtied(struct page *page, struct address_space *mapping)
{
	if (mapping_cap_account_dirty(mapping)) {
		__inc_zone_page_state(page, NR_FILE_DIRTY);
		__inc_bdi_stat(mapping->backing_dev_info, BDI_RECLAIMABLE);
		task_dirty_inc(current);
		task_io_account_write(PAGE_CACHE_SIZE);
	}
}