Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp790402ybb; Wed, 8 Apr 2020 09:56:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKVGpY9GD23kUR5iS+eFO8JVsEs5DO9FwQx0H9H3qhfh1ygr3NVqD97cqrWNmlhHWh+L2io X-Received: by 2002:a9d:6a12:: with SMTP id g18mr6289983otn.19.1586364965499; Wed, 08 Apr 2020 09:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586364965; cv=none; d=google.com; s=arc-20160816; b=jyoahrw89xQ0JRhwtslZonLFmEDOghE1kS/dnU2VKDdZ1rk8BvkkudkxaAsRGu6Ha4 vfZgtI3OHjBqYMvnKmhE2gnAfUKculRywlwFvXUzTa4hdzOgK244IPoZslX/r6Up7vki nN7caZb7EfsqKpWYBAhrDUhBDtihlzr2gGJji5sP8FEBitaRe8pxmVlrBdx3Nu/OEGML kaBTsN+Bd/JGcCNbp1hoVEEo2QYvJfXD2M0Qwr4PrPdrsngs34tszt07tsOeOsog5LrS ongT0YFy+2qGKgLMdPu4LUAUHStAbzpRiGF3w55oYx6PTRDP4xNTLL4cEfa2Gb4CH8Fy Ax1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Rjv5131jSAiyIu5HYACdcXLWZcmDSy5Ae4NdyG3A0EU=; b=Q9TfkxcdLLTVtuLNKVvFDy3xI7trS2jowc/rkdhNvz3jgiN+TFkXSHuzZUA67oAf3T 3shmaSLIceYmNodRD9UOgg3mKGiLaYe5JdEzze5Ys+G6t8EHiKNC4MEj77NHIZ+Eulao KCJ5g6fgTwBDlUEbnKSnaThEqI9+m9CuObUjvRm38sXjegMiu39vAue8aKQ5G/qBN2N6 lAIpdEoqtPauBs1ri97CBqnGwcySG6g5imI2cv49MXpHRCkDWgk7h3h5pQ9Xo9A/dm7E FzDH5kkgGsefXt1lP0Td/hpP0ZeoiYQW3OZ+ltMECPRWadwVBwwyMxf/fxsiThxNCdlh Vy+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=FuXsAshY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si2580442oia.55.2020.04.08.09.55.51; Wed, 08 Apr 2020 09:56:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=FuXsAshY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729461AbgDHPMf (ORCPT + 99 others); Wed, 8 Apr 2020 11:12:35 -0400 Received: from merlin.infradead.org ([205.233.59.134]:44274 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728309AbgDHPMd (ORCPT ); Wed, 8 Apr 2020 11:12:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Rjv5131jSAiyIu5HYACdcXLWZcmDSy5Ae4NdyG3A0EU=; b=FuXsAshYsSTgOfgG+tafxq311H 2DLcoyBxKM/nbGCT2GEvorwEQ03/VOWi5DKAbxhI4DqIPjAGXNNsOWsSOG7aU/Lla3ICxHLRu6SzM /q9DEwOTHGBUUXd+C1gWvP9Pjgc6GcW+Xi/RtUJFOAx/HNAnnerQFGHAfcPScOe5j3ll7FaXVMW5Z Z2xjwSDzwp0YcD5TzxjStK7nQDDKjXVISOx5Itl6OOQeUK3wpMFWDuSjU7Q7E7VC31GOzaWh+PQx5 zbPF7UcdVGkG+53Xs4Olbyq1FLyXUWKqf1azA1wf6Pm9lsIEV7Cpflmxs3MnCPe2MFR6K51PRMHF8 JF/j+ctA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMCN3-0004v8-A7; Wed, 08 Apr 2020 15:12:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 64B9E300478; Wed, 8 Apr 2020 17:12:03 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2B71F2BB026A0; Wed, 8 Apr 2020 17:12:03 +0200 (CEST) Date: Wed, 8 Apr 2020 17:12:03 +0200 From: Peter Zijlstra To: Randy Dunlap Cc: Christoph Hellwig , Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta , Robin Murphy , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/28] mm: only allow page table mappings for built-in zsmalloc Message-ID: <20200408151203.GN20730@hirez.programming.kicks-ass.net> References: <20200408115926.1467567-1-hch@lst.de> <20200408115926.1467567-11-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 08, 2020 at 08:01:00AM -0700, Randy Dunlap wrote: > Hi, > > On 4/8/20 4:59 AM, Christoph Hellwig wrote: > > diff --git a/mm/Kconfig b/mm/Kconfig > > index 36949a9425b8..614cc786b519 100644 > > --- a/mm/Kconfig > > +++ b/mm/Kconfig > > @@ -702,7 +702,7 @@ config ZSMALLOC > > > > config ZSMALLOC_PGTABLE_MAPPING > > bool "Use page table mapping to access object in zsmalloc" > > - depends on ZSMALLOC > > + depends on ZSMALLOC=y > > It's a bool so this shouldn't matter... not needed. My mm/Kconfig has: config ZSMALLOC tristate "Memory allocator for compressed pages" depends on MMU which I think means it can be modular, no?