hugetlb: allow to free gigantic pages regardless of the configuration

On systems without CONTIG_ALLOC activated but that support gigantic pages,
boottime reserved gigantic pages can not be freed at all.  This patch
simply enables the possibility to hand back those pages to memory

Signed-off-by: Alexandre Ghiti <>
Acked-by: David S. Miller <> [sparc]
Reviewed-by: Mike Kravetz <>
Cc: Andy Lutomirsky <>
Cc: Aneesh Kumar K.V <>
Cc: Benjamin Herrenschmidt <>
Cc: Borislav Petkov <>
Cc: Catalin Marinas <>
Cc: Dave Hansen <>
Cc: Heiko Carstens <>
Cc: "H . Peter Anvin" <>
Cc: Ingo Molnar <>
Cc: Martin Schwidefsky <>
Cc: Michael Ellerman <>
Cc: Paul Mackerras <>
Cc: Peter Zijlstra <>
Cc: Rich Felker <>
Cc: Thomas Gleixner <>
Cc: Vlastimil Babka <>
Cc: Will Deacon <>
Cc: Yoshinori Sato <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
14 files changed