From patchwork Fri Dec 24 06:22:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12698834 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6830AC433FE for ; Fri, 24 Dec 2021 06:23:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 055C16B009B; Fri, 24 Dec 2021 01:23:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 005E16B009C; Fri, 24 Dec 2021 01:23:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E5E1F6B009D; Fri, 24 Dec 2021 01:23:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0088.hostedemail.com [216.40.44.88]) by kanga.kvack.org (Postfix) with ESMTP id D68366B009B for ; Fri, 24 Dec 2021 01:23:42 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 9B1EB8913B for ; Fri, 24 Dec 2021 06:23:42 +0000 (UTC) X-FDA: 78951696684.23.BC154FA Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf15.hostedemail.com (Postfix) with ESMTP id E2629A0031 for ; Fri, 24 Dec 2021 06:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=OekyBfbXeB8EtlRGQip5DS+j5G95XxfKmI9Yn9Wc/qE=; b=kS//ilOGiMu6o+nWqHf5bfoj8+ hXF6jIh2sS7ug5totuZsthz+YsAdrtrGVC7D5g4r+jByzLTlGxgrIDM43qPD+DYJyGp9CxAaF22Ha ZJ1lkY+r4rkMPDNeKSijtXru3WTBgPfVnlQ+dUkhJwk0pFe2STnbNhXMHLBzte2AhSHjD9aa8ZVYA Du6Rsx3voZPi5Frme42WN9ofTesI8n3RTwsYySGJxQ20ivpuvDKYLMtp++UxFJrSerpwCCTHjOC4K RF9cyx55SrQxMWDNXgW+Qm6uNHQ2is7A6MKlkoRV2yHZtDWcbNPsaoM/x81e+aDazKxHiYatyGm7y QYhHnK9A==; Received: from p4fdb0b85.dip0.t-ipconnect.de ([79.219.11.133] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0dzD-00DnCL-GS; Fri, 24 Dec 2021 06:23:28 +0000 From: Christoph Hellwig To: Andrew Morton , Konrad Rzeszutek Wilk Cc: Hugh Dickins , Seth Jennings , Dan Streetman , Vitaly Wool , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 13/13] mm: hide the FRONTSWAP Kconfig symbol Date: Fri, 24 Dec 2021 07:22:46 +0100 Message-Id: <20211224062246.1258487-14-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211224062246.1258487-1-hch@lst.de> References: <20211224062246.1258487-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: E2629A0031 X-Stat-Signature: dfc6zu4shhpw9qsyzdsdqjckumozrxbd Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b="kS//ilOG"; spf=none (imf15.hostedemail.com: domain of BATV+afcec93cc8ffef6ccdbc+6697+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+afcec93cc8ffef6ccdbc+6697+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none X-HE-Tag: 1640327013-495459 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Select FRONTSWAP from ZSWAP instead of prompting for it. Signed-off-by: Christoph Hellwig --- mm/Kconfig | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index 430240289b02b..3326ee3903f33 100644 --- a/mm/Kconfig +++ b/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