The patch titled Subject: mm: hide the FRONTSWAP Kconfig symbol has been added to the -mm tree. Its filename is mm-hide-the-frontswap-kconfig-symbol.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-hide-the-frontswap-kconfig-symbol.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-hide-the-frontswap-kconfig-symbol.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Christoph Hellwig <hch@xxxxxx> Subject: 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@xxxxxx Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> Cc: Dan Streetman <ddstreet@xxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Konrad Rzeszutek Wilk <Konrad.wilk@xxxxxxxxxx> Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Cc: Seth Jennings <sjenning@xxxxxxxxxx> Cc: Vitaly Wool <vitaly.wool@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/Kconfig | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) --- a/mm/Kconfig~mm-hide-the-frontswap-kconfig-symbol +++ a/mm/Kconfig @@ -445,20 +445,7 @@ config HAVE_SETUP_PER_CPU_AREA bool config FRONTSWAP - bool "Enable frontswap to cache swap pages if tmem is present" - depends on SWAP - help - Frontswap is so named because it can be thought of as the opposite - of a "backing" store for a swap device. The data is stored into - "transcendent memory", memory that is not directly accessible or - addressable by the kernel and is of unknown and possibly - time-varying size. When space in transcendent memory is available, - a significant swap I/O reduction may be achieved. When none is - available, all frontswap calls are reduced to a single pointer- - compare-against-NULL resulting in a negligible performance hit - and swap data is stored as normal on the matching swap device. - - If unsure, say Y to enable frontswap. + bool config CMA bool "Contiguous Memory Allocator" @@ -523,7 +510,8 @@ config MEM_SOFT_DIRTY config ZSWAP bool "Compressed cache for swap pages (EXPERIMENTAL)" - depends on FRONTSWAP && CRYPTO=y + depends on SWAP && CRYPTO=y + select FRONTSWAP select ZPOOL help A lightweight compressed cache for swap pages. It takes _ Patches currently in -mm which might be from hch@xxxxxx are mm-remove-cleancache.patch frontswap-remove-frontswap_writethrough.patch frontswap-remove-frontswap_tmem_exclusive_gets.patch frontswap-remove-frontswap_shrink.patch frontswap-remove-frontswap_curr_pages.patch frontswap-simplify-frontswap_init.patch frontswap-remove-the-frontswap-exports.patch mm-simplify-try_to_unuse.patch frontswap-remove-frontswap_test.patch frontswap-simplify-frontswap_register_ops.patch mm-mark-swap_lock-and-swap_active_head-static.patch frontswap-remove-support-for-multiple-ops.patch mm-hide-the-frontswap-kconfig-symbol.patch