Skip to content

Commit 6e61dde

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: hide the FRONTSWAP Kconfig symbol
Select FRONTSWAP from ZSWAP instead of prompting for it. Link: https://lkml.kernel.org/r/20211224062246.1258487-14-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Juergen Gross <jgross@suse.com> Cc: Dan Streetman <ddstreet@ieee.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Hugh Dickins <hughd@google.com> Cc: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Seth Jennings <sjenning@redhat.com> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 1da0d94 commit 6e61dde

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

mm/Kconfig

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -445,20 +445,7 @@ config HAVE_SETUP_PER_CPU_AREA
445445
bool
446446

447447
config FRONTSWAP
448-
bool "Enable frontswap to cache swap pages if tmem is present"
449-
depends on SWAP
450-
help
451-
Frontswap is so named because it can be thought of as the opposite
452-
of a "backing" store for a swap device. The data is stored into
453-
"transcendent memory", memory that is not directly accessible or
454-
addressable by the kernel and is of unknown and possibly
455-
time-varying size. When space in transcendent memory is available,
456-
a significant swap I/O reduction may be achieved. When none is
457-
available, all frontswap calls are reduced to a single pointer-
458-
compare-against-NULL resulting in a negligible performance hit
459-
and swap data is stored as normal on the matching swap device.
460-
461-
If unsure, say Y to enable frontswap.
448+
bool
462449

463450
config CMA
464451
bool "Contiguous Memory Allocator"
@@ -523,7 +510,8 @@ config MEM_SOFT_DIRTY
523510

524511
config ZSWAP
525512
bool "Compressed cache for swap pages (EXPERIMENTAL)"
526-
depends on FRONTSWAP && CRYPTO=y
513+
depends on SWAP && CRYPTO=y
514+
select FRONTSWAP
527515
select ZPOOL
528516
help
529517
A lightweight compressed cache for swap pages. It takes

0 commit comments

Comments
 (0)