Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp831928ybb; Wed, 8 Apr 2020 10:45:19 -0700 (PDT) X-Google-Smtp-Source: APiQypKKqIL637xOfBzi/gdYYQ9abtwVR4Al97s578Xe2VnQwzpn36oxThmY01GedEoINVqxWoZA X-Received: by 2002:a9d:5190:: with SMTP id y16mr5194981otg.139.1586367919464; Wed, 08 Apr 2020 10:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586367919; cv=none; d=google.com; s=arc-20160816; b=G+XvIWd2Ozlj7OYpnT06P4gXuwX+teUcvXTURA4N9JqF1KhyYfD+8yKZAhVS0ZNMlP i6TtAp5Gmq+IL7j9n3lq4yv+hmdB1cHaQCO0WdJTkWhqhm1xljyjCKp0wG2z5MxSt7Uj hDtvSa5+IKVFdUGPBBN2RMYUiiUrsMhIo9azqgIK5iFf33FeO4D8J1N3vkea0uzqODou KINYWfoK8dAj4eIts1G3/gwRX5FvcL3BuJY8PfG50sCJIGphR+25b/MWoLr99G0NnO+k W24YWagNrbHrrC87jq3pKR89TlWi7QTDVXt8e508/wJmREz55kz8/04g73qc4RvolOb3 g83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=z6uT3zfoNo6WwfqfYAg3K00A9c3nmTAa9Ky9FNPUNOk=; b=qpi2D3CFfITJYLi8jygIflZZXPw5y3402e+XeMGZ37sZT98XD2l74YRMNQpez9gH4m q1vE7TM4HSGAF+4GWw4XYwqioT9O4YbcVTpvpVrxss3LBjyjABvUsRgQqGzN0BfcwdFW HrJ19yVjVp4T+ck+U6i8qiRYGQGyJmxbHg5/kkHz1+adanyX7OBQYqdnnZ+zbOzS9YIz 3Gxhi3uQ8eWAc2gbU7JXvJ0RhpcUN+gHuQy2Kz/V60wjAoZ5zq98ErCds6thBIjFpEwA IuzbPDe14dXR1PDJSHSs34S8Fye1xPQSbd5jzvKFcCz9GSroQREVROTgClUBbmxr4PWk 3ZiA== ARC-Authentication-Results: i=1; mx.google.com; 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 t6si2298043oib.255.2020.04.08.10.45.04; Wed, 08 Apr 2020 10:45:19 -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; 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 S1728657AbgDHPgJ (ORCPT + 99 others); Wed, 8 Apr 2020 11:36:09 -0400 Received: from verein.lst.de ([213.95.11.211]:42880 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbgDHPgI (ORCPT ); Wed, 8 Apr 2020 11:36:08 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 0291668C4E; Wed, 8 Apr 2020 17:36:02 +0200 (CEST) Date: Wed, 8 Apr 2020 17:36:02 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Peter Zijlstra , Randy Dunlap , 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: <20200408153602.GA28081@lst.de> References: <20200408115926.1467567-1-hch@lst.de> <20200408115926.1467567-11-hch@lst.de> <20200408151203.GN20730@hirez.programming.kicks-ass.net> <20200408151519.GQ21484@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408151519.GQ21484@bombadil.infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) 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:15:19AM -0700, Matthew Wilcox wrote: > > > > 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? > > Randy means that ZSMALLOC_PGTABLE_MAPPING is a bool, so I think hch's patch > is wrong ... if ZSMALLOC is 'm' then ZSMALLOC_PGTABLE_MAPPING would become > 'n' instead of 'y'. In Linus' tree you can select PGTABLE_MAPPING=y with ZSMALLOC=m, and that fits my understanding of the kbuild language. With this patch I can't anymore.