Comments
Patch
@@ -1135,6 +1135,12 @@ config SHMEM
option replaces shmem and tmpfs with the much simpler ramfs code,
which may be appropriate on small systems without swap.
+config SHMEM_HUGEPAGECACHE
+ bool "Allow usage of transparent huge pages"
+ depends on HUGEPAGECACHE && SHMEM
+ help
+ This allows usage of huge pages in shmfs (tmpfs)
+
config AIO
bool "Enable AIO support" if EXPERT
default y
@@ -349,6 +349,17 @@ choice
benefit.
endchoice
+config HUGEPAGECACHE
+ bool "Support for huge pages in page cache"
+ depends on TRANSPARENT_HUGEPAGE
+ select COMPACTION
+ help
+ Huge pages in page cache allows to transaprently use huge
+ pages in file maped regions. This options just exports
+ required interfaces, You will need to enable support
+ for Huge Page Cache for particullar filesystems.
+ Currently only shmfs supports huge pages in page cache.
+
#
# UP and nommu archs use km based percpu allocator
#
Just, adds config options for enabling huge page cache and enabling it in shmfs (tmpfs). Signed-off-by: Radosław Smogura <mail@smogura.eu> --- init/Kconfig | 6 ++++++ mm/Kconfig | 11 +++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-)