]> git.karo-electronics.de Git - mv-sheeva.git/commit
thp: madvise(MADV_HUGEPAGE)
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:55 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:42 +0000 (17:32 -0800)
commit0af4e98b6b095c74588af04872f83d333c958c32
tree56b1965482470219a8cf11b7e7c875ae91bff46e
parentf66055ab6fb9731dbfce320c5202ef4441b5d77f
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 <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/huge_mm.h
mm/huge_memory.c
mm/madvise.c