aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 7675b91f4f63..2d3ec1ffc66e 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -115,7 +115,7 @@ void __remove_from_page_cache(struct page *page)
115{ 115{
116 struct address_space *mapping = page->mapping; 116 struct address_space *mapping = page->mapping;
117 117
118 mem_cgroup_uncharge_page(page); 118 mem_cgroup_uncharge_cache_page(page);
119 radix_tree_delete(&mapping->page_tree, page->index); 119 radix_tree_delete(&mapping->page_tree, page->index);
120 page->mapping = NULL; 120 page->mapping = NULL;
121 mapping->nrpages--; 121 mapping->nrpages--;
@@ -474,12 +474,12 @@ int add_to_page_cache(struct page *page, struct address_space *mapping,
474 mapping->nrpages++; 474 mapping->nrpages++;
475 __inc_zone_page_state(page, NR_FILE_PAGES); 475 __inc_zone_page_state(page, NR_FILE_PAGES);
476 } else 476 } else
477 mem_cgroup_uncharge_page(page); 477 mem_cgroup_uncharge_cache_page(page);
478 478
479 write_unlock_irq(&mapping->tree_lock); 479 write_unlock_irq(&mapping->tree_lock);
480 radix_tree_preload_end(); 480 radix_tree_preload_end();
481 } else 481 } else
482 mem_cgroup_uncharge_page(page); 482 mem_cgroup_uncharge_cache_page(page);
483out: 483out:
484 return error; 484 return error;
485} 485}
@@ -2563,9 +2563,8 @@ EXPORT_SYMBOL(generic_file_aio_write);
2563 * Otherwise return zero. 2563 * Otherwise return zero.
2564 * 2564 *
2565 * The @gfp_mask argument specifies whether I/O may be performed to release 2565 * The @gfp_mask argument specifies whether I/O may be performed to release
2566 * this page (__GFP_IO), and whether the call may block (__GFP_WAIT). 2566 * this page (__GFP_IO), and whether the call may block (__GFP_WAIT & __GFP_FS).
2567 * 2567 *
2568 * NOTE: @gfp_mask may go away, and this function may become non-blocking.
2569 */ 2568 */
2570int try_to_release_page(struct page *page, gfp_t gfp_mask) 2569int try_to_release_page(struct page *page, gfp_t gfp_mask)
2571{ 2570{