aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/Kconfig17
-rw-r--r--mm/Makefile1
2 files changed, 18 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index e338407f1225..2613c910935a 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -379,3 +379,20 @@ config CLEANCACHE
379 in a negligible performance hit. 379 in a negligible performance hit.
380 380
381 If unsure, say Y to enable cleancache 381 If unsure, say Y to enable cleancache
382
383config FRONTSWAP
384 bool "Enable frontswap to cache swap pages if tmem is present"
385 depends on SWAP
386 default n
387 help
388 Frontswap is so named because it can be thought of as the opposite
389 of a "backing" store for a swap device. The data is stored into
390 "transcendent memory", memory that is not directly accessible or
391 addressable by the kernel and is of unknown and possibly
392 time-varying size. When space in transcendent memory is available,
393 a significant swap I/O reduction may be achieved. When none is
394 available, all frontswap calls are reduced to a single pointer-
395 compare-against-NULL resulting in a negligible performance hit
396 and swap data is stored as normal on the matching swap device.
397
398 If unsure, say Y to enable frontswap.
diff --git a/mm/Makefile b/mm/Makefile
index 50ec00ef2a0e..306742a28266 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -26,6 +26,7 @@ obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o
26 26
27obj-$(CONFIG_BOUNCE) += bounce.o 27obj-$(CONFIG_BOUNCE) += bounce.o
28obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o thrash.o 28obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o thrash.o
29obj-$(CONFIG_FRONTSWAP) += frontswap.o
29obj-$(CONFIG_HAS_DMA) += dmapool.o 30obj-$(CONFIG_HAS_DMA) += dmapool.o
30obj-$(CONFIG_HUGETLBFS) += hugetlb.o 31obj-$(CONFIG_HUGETLBFS) += hugetlb.o
31obj-$(CONFIG_NUMA) += mempolicy.o 32obj-$(CONFIG_NUMA) += mempolicy.o