[PATCH] Light weight event counters
[deliverable/linux.git] / mm / filemap.c
index 87d62c44c3f0647ad6a0a583a9c80ed923b9467c..796a5471b4956ff3bfb27ceb0a64323590c49cd8 100644 (file)
@@ -1416,7 +1416,7 @@ retry_find:
                 */
                if (!did_readaround) {
                        majmin = VM_FAULT_MAJOR;
-                       inc_page_state(pgmajfault);
+                       count_vm_event(PGMAJFAULT);
                }
                did_readaround = 1;
                ra_pages = max_sane_readahead(file->f_ra.ra_pages);
@@ -1487,7 +1487,7 @@ no_cached_page:
 page_not_uptodate:
        if (!did_readaround) {
                majmin = VM_FAULT_MAJOR;
-               inc_page_state(pgmajfault);
+               count_vm_event(PGMAJFAULT);
        }
        lock_page(page);
 
This page took 0.025377 seconds and 5 git commands to generate.