From patchwork Tue Sep 3 04:00:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 13788032 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 4AB56CA101E for ; Tue, 3 Sep 2024 04:01:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B8ABA8D0138; Tue, 3 Sep 2024 00:01:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B13468D0119; Tue, 3 Sep 2024 00:01:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 98CD58D0138; Tue, 3 Sep 2024 00:01:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 761608D0119 for ; Tue, 3 Sep 2024 00:01:53 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2DA411204EB for ; Tue, 3 Sep 2024 04:01:52 +0000 (UTC) X-FDA: 82522078464.15.036CB63 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by imf10.hostedemail.com (Postfix) with ESMTP id 638D6C0008 for ; Tue, 3 Sep 2024 04:01:50 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=eQEodzX+; spf=pass (imf10.hostedemail.com: domain of senozhatsky@chromium.org designates 209.85.215.181 as permitted sender) smtp.mailfrom=senozhatsky@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725336063; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=ftV8LT4FZJTlN5X5kHuknLXLmnUekYL9YIRf3bchnfk=; b=kZFHe1nvLBrw065tmJA9YBaSxTB1jUU4SIXywU8WrXTIqmxcMeBOpkV8YJrQrx3mcHj/LZ 4gDTW3QJ4WhxXRxnRbCArFq13U+FRW5wuVXL6A+zhQS4XHwAIrFu4mOkWpMPuwHNxRwFJb V+gIPHmppz1r5C/TGGZxcRKq0CwQBbs= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=eQEodzX+; spf=pass (imf10.hostedemail.com: domain of senozhatsky@chromium.org designates 209.85.215.181 as permitted sender) smtp.mailfrom=senozhatsky@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725336063; a=rsa-sha256; cv=none; b=oqlDYBJuIzOkufaWiDtxh/eWpM6UZTsqBXE0FKSdaSfVq+3Pf7mKyihDgmCIa1wayn5lEm cNl4Yzai1hEwBK9Pl08sUQ1HCfBuIVvFp68T01g2y2DMzFAWyv0d8YM/kN5O8Utfc2Xv1B 2QPb9JnO9rOu2rSnGgMHhVH0GXc2iss= Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-7d1fa104851so2726678a12.3 for ; Mon, 02 Sep 2024 21:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725336109; x=1725940909; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ftV8LT4FZJTlN5X5kHuknLXLmnUekYL9YIRf3bchnfk=; b=eQEodzX+OWA+M+mHGwE5ZzI7Gq52tvexOk9ADHiZV5PgNMrn3OTWDgIQKkNP49uh2p DnaLk3Hb4e1H3qla49eaaX0DS92oZSPFghUFzp8Rw/CuCu9QiyoYE1mTbEKpZEBS8g// dpa37KWxblaS+Gv17xCp0scgt/74m2kdRJrmI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725336109; x=1725940909; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ftV8LT4FZJTlN5X5kHuknLXLmnUekYL9YIRf3bchnfk=; b=w9BpJjpKvs3QtjbPcJbThdhU8DIjBQNrDSNYdX1T5kuVbq3Up+ItSHT8wak43tGPS0 7gb4KbWy8bIcVljJB8x9+9I+dQHy+6DRyVJ77jW1h1d1zJPq1TwPNKGe4IHGxlJYLzkV YeKDdA9S2XEX3qLRILPnXVuUHOXF4O+3tPTQ4zDgs810VN6Ebinh1X8FzqOcLqouT8Nm aRRCtIMpDjNRSG3jbNSuTQVvNFBoV7Mj3p9TmfQt1qYWa0uMaHo83RC9VRzDtA5KLViO JNgbJpJavDtf++CWp6mt4cHj+N9UGZHEljBSJyGp6igiIyeXNuA6pZCMU8nTnp69maHQ i/qQ== X-Gm-Message-State: AOJu0Yw43nvtwaQoYa4MEabbIuokuiuX8jc1uSf9ViWp0vQ2SaAek6S+ +6KGwacX8ziJamyRbJ9CJUM+mUj5LdVCOTExDVrDZw/zr3kiF+Dx6LvNvCbcSQ== X-Google-Smtp-Source: AGHT+IHgeshsC0UUKlfgFTKElAeJsUZNFA4bT2F36hiZ4Yerm4TqMaX/gtJKDrtvGKS550d1pNbbwA== X-Received: by 2002:a17:90b:3717:b0:2d8:efd1:22e4 with SMTP id 98e67ed59e1d1-2d8efd1244fmr4399925a91.26.1725336109028; Mon, 02 Sep 2024 21:01:49 -0700 (PDT) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:43a1:71e3:7464:e91b]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d8d71b9578sm3251294a91.6.2024.09.02.21.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 21:01:48 -0700 (PDT) From: Sergey Senozhatsky To: Andrew Morton , Johannes Weiner , Minchan Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCH] mm: Kconfig: fixup zsmalloc configuration Date: Tue, 3 Sep 2024 13:00:22 +0900 Message-ID: <20240903040143.1580705-1-senozhatsky@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 638D6C0008 X-Stat-Signature: m8bbiihgco76kdeis1g8eysrwcqtuzhu X-HE-Tag: 1725336110-160787 X-HE-Meta: U2FsdGVkX18A2n9YfJx1WHlpbBNHmJpX1gwWJrZoQr+xjmcy4VQtOUc/QthS+HqwB8p6gsthEAgYpWKOgzLYpRDWKQkC6ps13Ifu+U2HCWEfFpjaFpCZHiGwAAPldb4epdzgglAIaUtJy1BalBZmxmLDHq6vqjqREr0zwPtjUjXV2O6VxVu+koFlpC2uln24UNAKDeHCaYrLGyHFnssLiN5Zj70AKullGoPmdCxL8TG/ixhKRQb1yS2/RGSb+obW6QwuYKXlgsynilWF1jVbg8oiVuqx3X9cOzHsjbx+c3MGMnACQWYZP33HiJEISObCStaCoWkFYYd//TolH7pbS8FELCT6mwfTXNxmFmmTuwxNTdbaYMHQaqzycVo4OE+JeilW/nAy/Ag1dVb1tPtVrA8dORJHHQRUIc6+/OBovhE4SxjWcRv89hsEr7ZdZCAwESgC4LlPLcwf8CmdPTjZ9aw+eUlOboUGnpjDtY0l9joR0TkQq2uWk7agSevxdZQhSl5iJcV9GS/tLsYBoFyb/JorZF8jI74eUVLNi2L9Y8LPmKeIRdH9RgpfAMTZl2Kl/9c6P9RWG4Gc+1vMndUbOyDxnqV36yrsCYo+iyHdZmYaz0EMg4SCbj/e7GRUf5rtLkQodspmSIg4jcz1o/1H/ftvrHFtjMCOHrUcadDqLM1qKzV0d6qzLh3AayS8LP+emSn7V5kiWQxBhwz9QtgaQwhBtN72gzImXVolH5/RqL4xIBcVpZnh5w8q2U84E6srJbK72zE6pN02Zg7BMdjZubQGQ9QZOhUVYIQWcmIp0+QiLd4r41Y+71tWmeUHRGnBC36DMZdb6YEwaxKzgSEBgT/p6ohm/kzLFuFkEe3mbizM7QFNi3K0qbXCoiR6gCCoh9OEZ+slQod6MjAju7Rh/GDOznpDR2VX5FfDEcdHNdvR3o/JUNW8rp7YxI27FABBN9y6gVtC4MhuCY2QplI YO951m57 M9MadW5LXwUt+drEmVUvMQjIFippe3m3plDI+DGoNymhY8mdvJJdI46G9QPnVt+38/77sWtAlBlXt0FJJeGZbUpk3vheV0i6b8WcKq28mXYMBB3h4BYH9xkmvgAc2Vp5oDNuKRrP4eTiXugVn0GHenzN/l3rCk4TDsYmf/wTDGloQu79RZb+xiK+uwXd7R/qccngDT7Em/gvwUR9vqDrT5HgTM+iy/vrgxKPxD5M6aRLyatyZNA/Fp7+CL72d80cef4d7YzEEKu1JW9cgCa/mfLWalc6r0ETODCK+jOkCo8px/tD31WjLOWaeZQ== 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: List-Subscribe: List-Unsubscribe: zsmalloc is not exclusive to zswap. Commit aa3ba6d72ce0 ("mm: Kconfig: fixup zsmalloc configuration") made CONFIG_ZSMALLOC only visible when CONFIG_ZSWAP is selected, which makes it impossible to menuconfig zsmalloc-specific features (stats, chain-size, etc.) on systems that use ZRAM but don't have ZSWAP enabled. Make zsmalloc depend on both ZRAM and ZSWAP. Fixes: Fixes: aa3ba6d72ce0 ("mm: Kconfig: fixup zsmalloc configuration") Signed-off-by: Sergey Senozhatsky --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index b23913d4e47e..1aa282e35dc7 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -188,7 +188,7 @@ config Z3FOLD config ZSMALLOC tristate - prompt "N:1 compression allocator (zsmalloc)" if ZSWAP + prompt "N:1 compression allocator (zsmalloc)" if (ZSWAP || ZRAM) depends on MMU help zsmalloc is a slab-based memory allocator designed to store