aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index e1979fdca805..2581826409f2 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -35,6 +35,9 @@
35#include <linux/cleancache.h> 35#include <linux/cleancache.h>
36#include "internal.h" 36#include "internal.h"
37 37
38#define CREATE_TRACE_POINTS
39#include <trace/events/filemap.h>
40
38/* 41/*
39 * FIXME: remove all knowledge of the buffer layer from the core VM 42 * FIXME: remove all knowledge of the buffer layer from the core VM
40 */ 43 */
@@ -113,6 +116,7 @@ void __delete_from_page_cache(struct page *page)
113{ 116{
114 struct address_space *mapping = page->mapping; 117 struct address_space *mapping = page->mapping;
115 118
119 trace_mm_filemap_delete_from_page_cache(page);
116 /* 120 /*
117 * if we're uptodate, flush out into the cleancache, otherwise 121 * if we're uptodate, flush out into the cleancache, otherwise
118 * invalidate any existing cleancache entries. We can't leave 122 * invalidate any existing cleancache entries. We can't leave
@@ -464,6 +468,7 @@ int add_to_page_cache_locked(struct page *page, struct address_space *mapping,
464 mapping->nrpages++; 468 mapping->nrpages++;
465 __inc_zone_page_state(page, NR_FILE_PAGES); 469 __inc_zone_page_state(page, NR_FILE_PAGES);
466 spin_unlock_irq(&mapping->tree_lock); 470 spin_unlock_irq(&mapping->tree_lock);
471 trace_mm_filemap_add_to_page_cache(page);
467 } else { 472 } else {
468 page->mapping = NULL; 473 page->mapping = NULL;
469 /* Leave page->index set: truncation relies upon it */ 474 /* Leave page->index set: truncation relies upon it */