diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index f02ca30372cc..d087fc3d3281 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -119,7 +119,7 @@ void __remove_from_page_cache(struct 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--; |
122 | pagecache_acct(-1); | 122 | __dec_zone_page_state(page, NR_FILE_PAGES); |
123 | } | 123 | } |
124 | 124 | ||
125 | void remove_from_page_cache(struct page *page) | 125 | void remove_from_page_cache(struct page *page) |
@@ -448,7 +448,7 @@ int add_to_page_cache(struct page *page, struct address_space *mapping, | |||
448 | page->mapping = mapping; | 448 | page->mapping = mapping; |
449 | page->index = offset; | 449 | page->index = offset; |
450 | mapping->nrpages++; | 450 | mapping->nrpages++; |
451 | pagecache_acct(1); | 451 | __inc_zone_page_state(page, NR_FILE_PAGES); |
452 | } | 452 | } |
453 | write_unlock_irq(&mapping->tree_lock); | 453 | write_unlock_irq(&mapping->tree_lock); |
454 | radix_tree_preload_end(); | 454 | radix_tree_preload_end(); |
@@ -1415,7 +1415,7 @@ retry_find: | |||
1415 | */ | 1415 | */ |
1416 | if (!did_readaround) { | 1416 | if (!did_readaround) { |
1417 | majmin = VM_FAULT_MAJOR; | 1417 | majmin = VM_FAULT_MAJOR; |
1418 | inc_page_state(pgmajfault); | 1418 | count_vm_event(PGMAJFAULT); |
1419 | } | 1419 | } |
1420 | did_readaround = 1; | 1420 | did_readaround = 1; |
1421 | ra_pages = max_sane_readahead(file->f_ra.ra_pages); | 1421 | ra_pages = max_sane_readahead(file->f_ra.ra_pages); |
@@ -1486,7 +1486,7 @@ no_cached_page: | |||
1486 | page_not_uptodate: | 1486 | page_not_uptodate: |
1487 | if (!did_readaround) { | 1487 | if (!did_readaround) { |
1488 | majmin = VM_FAULT_MAJOR; | 1488 | majmin = VM_FAULT_MAJOR; |
1489 | inc_page_state(pgmajfault); | 1489 | count_vm_event(PGMAJFAULT); |
1490 | } | 1490 | } |
1491 | lock_page(page); | 1491 | lock_page(page); |
1492 | 1492 | ||