From: Andrea Arcangeli Date: Thu, 13 Jan 2011 23:46:55 +0000 (-0800) Subject: thp: madvise(MADV_HUGEPAGE) X-Git-Tag: v2.6.38-rc1~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af4e98b6b095c74588af04872f83d333c958c32;p=pandora-kernel.git thp: madvise(MADV_HUGEPAGE) Add madvise MADV_HUGEPAGE to mark regions that are important to be hugepage backed. Return -EINVAL if the vma is not of an anonymous type, or the feature isn't built into the kernel. Never silently return success. Signed-off-by: Andrea Arcangeli Acked-by: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed