Skip to content

RFC Merge HUGETLB_PAGE and HUGETLBFS Kconfig options

Adam Litke linux-ia64 linux-mips linux-mm linux-s390 linux-sh linuxppc-dev lkml sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Merge options into CONFIG_HUGETLBDocumentation/vm/hugetlbpage.txt arch/arm/mm/consistent.c arch/avr32/mm/dma-coherent.c +47 more+81 -860 replies
2/2Update defconfigs for CONFIG_HUGETLBarch/alpha/defconfig arch/arm/configs/am200epdkit_defconfig arch/arm/configs/assabet_defconfig +332 more+335 -3852 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] Merge HUGETLB_PAGE and HUGETLBFS Kconfig options

There are currently two global Kconfig options that enable/disable the hugetlb code: CONFIG_HUGETLB_PAGE and CONFIG_HUGETLBFS. This may have made sense before hugetlbfs became ubiquitous but now the pair of options are redundant. Merging these two options into one will simplify the code slightly and will, more importantly, avoid confusion and questions like: Which hugetlbfs CONFIG option should my code depend on?

CONFIG_HUGETLB_PAGE is aliased to the value of CONFIG_HUGETLBFS, so one option can be removed without any effect. The first patch merges the two options into one option: CONFIG_HUGETLB. The second patch updates the defconfigs to set the one new option appropriately.

I have cross-compiled this on i386, x86_64, ia64, powerpc, sparc64 and sh with the option enabled and disabled. This is completely mechanical but, due to the large number of files affected (especially defconfigs), could do well with a review from several sets of eyeballs. Thanks.

Signature · 2 lines
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center