diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-12-13 01:51:05 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 05:38:31 +0400 |
commit | 78ca0e679203bbf74f8febd9725a1c8dd083d073 (patch) | |
tree | 6b2541d8cb1ee2697eb12a299447e5afc78f830c /include/linux/vm_event_item.h | |
parent | 80371957f09814d25c38733d2d08de47f59a13c2 (diff) | |
download | linux-78ca0e679203bbf74f8febd9725a1c8dd083d073.tar.xz |
thp: lazy huge zero page allocation
Instead of allocating huge zero page on hugepage_init() we can postpone it
until first huge zero page map. It saves memory if THP is not in use.
cmpxchg() is used to avoid race on huge_zero_pfn initialization.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@linux.intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/vm_event_item.h')
0 files changed, 0 insertions, 0 deletions