From: Kirill A. Shutemov Date: Wed, 12 Dec 2012 21:51:05 +0000 (-0800) Subject: thp: lazy huge zero page allocation X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~33^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78ca0e679203bbf74f8febd9725a1c8dd083d073;p=pandora-kernel.git 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 Cc: Andrea Arcangeli Cc: Andi Kleen Cc: "H. Peter Anvin" Cc: Mel Gorman Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed