diff options
author | David Rientjes <rientjes@google.com> | 2013-09-13 00:14:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-13 00:38:03 +0200 |
commit | 17766dde364813568e4f876517c72bab70838646 (patch) | |
tree | 22da9c5e44b3b55145986603ad7804fd5bacfaec /scripts/headerdep.pl | |
parent | thp: consolidate code between handle_mm_fault() and do_huge_pmd_anonymous_page() (diff) | |
download | linux-17766dde364813568e4f876517c72bab70838646.tar.xz linux-17766dde364813568e4f876517c72bab70838646.zip |
mm, thp: count thp_fault_fallback anytime thp fault fails
Currently, thp_fault_fallback in vmstat only gets incremented if a
hugepage allocation fails. If current's memcg hits its limit or the page
fault handler returns an error, it is incorrectly accounted as a
successful thp_fault_alloc.
Count thp_fault_fallback anytime the page fault handler falls back to
using regular pages and only count thp_fault_alloc when a hugepage has
actually been faulted.
Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/headerdep.pl')
0 files changed, 0 insertions, 0 deletions