From: =?UTF-8?q?Rados=C5=82aw=20Smogura?= Subject: [PATCH 07/18] Configuration menu for Huge Page Cache Date: Thu, 16 Feb 2012 15:31:34 +0100 Message-ID: <1329402705-25454-7-git-send-email-mail@smogura.eu> References: <1329402705-25454-1-git-send-email-mail@smogura.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Yongqiang Yang , mail@smogura.eu, linux-ext4@vger.kernel.org To: linux-mm@kvack.org Return-path: In-Reply-To: <1329402705-25454-1-git-send-email-mail@smogura.eu> Sender: owner-linux-mm@kvack.org List-Id: linux-ext4.vger.kernel.org Just, adds config options for enabling huge page cache and enabling it in shmfs (tmpfs). Signed-off-by: Rados=C5=82aw Smogura --- init/Kconfig | 6 ++++++ mm/Kconfig | 11 +++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index 3f42cd6..a58b622 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -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. =20 +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 diff --git a/mm/Kconfig b/mm/Kconfig index e338407..494122d 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -349,6 +349,17 @@ choice benefit. endchoice =20 +config HUGEPAGECACHE + bool "Support for huge pages in page cache" + depends on TRANSPARENT_HUGEPAGE + select COMPACTION=20 + 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 # --=20 1.7.3.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter= .ca/ Don't email: email@kvack.org