Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1263320pxf; Fri, 9 Apr 2021 04:20:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZlpjEOfSjAepdu1DfbMrbhAMJ0svPeDsne3ypNBUnx3HQVkPbtzctMu6rujEFJhdROiNX X-Received: by 2002:a17:906:1957:: with SMTP id b23mr15355617eje.245.1617967213296; Fri, 09 Apr 2021 04:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617967213; cv=none; d=google.com; s=arc-20160816; b=kBQ1P7S6nRPHStumVJPArinJmoIjr28akZBSvz1qyRr8QakU6aPPw50pnUuvSyGpgN uriGSpAKeOMiW1wZH7RGgGcQuxLTO2oV5tni20gR6guNL43PpDdt+v/0Ftl0b4RYTUvk CT54OG7EJAChuu/EDryGgfVb3CESGlWcLusTOHyAdKPxft1+/4bXEfwPDaSEEYAM5WOd ikpRkOs0xgmML9IeJ+7F7K1bGrmC6qdgJPrjY18S2qTjWsB8NGptCNgbNZ5ox6r6/xaI 1fj8x3S8Z4mB9dae2higEWRoaXUwuNSBJE0k+XUhj2IBYYghViINOlBymmDrwM4ZgwR0 ldRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0G+omcGOetSmBATjuAzTrvUrz2CKNcOMwN8ZffcfyG4=; b=EQUduwaj81+IdCZlZipIhesTqbP9C3RWuXq4hUkif4jeSnIMz3NiV+CRUJDRqHoKQK fohnhQukrmhiXUAoyKCJYOeo8Yk7rnqkU29gck6czY1l4GriwAxBLFiNzh/UQcLvTScL zG4Zz5eBggOhDoKN6kd979U3AiiJR4c4WSGX8yX/hAQfQqzF5yLJf+aBxVefoHmy2mEW v5lb8L3RB5uNvwKUhBUcIDhuN07LRYveXJyJxCtefbnJP25iGWUfK+ALHpzlEUeDMBCm nlBNDZXyhjlZN6TBM9mQEgo5O6Ua+kx6AywmIrk2B/RHuns6mVYpbiIIplRNcAJjo2lX r24g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cYjFYTUA; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si1042979ejr.512.2021.04.09.04.19.49; Fri, 09 Apr 2021 04:20:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cYjFYTUA; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234051AbhDILSj (ORCPT + 99 others); Fri, 9 Apr 2021 07:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234113AbhDILS0 (ORCPT ); Fri, 9 Apr 2021 07:18:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D738C061762; Fri, 9 Apr 2021 04:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=0G+omcGOetSmBATjuAzTrvUrz2CKNcOMwN8ZffcfyG4=; b=cYjFYTUAND/8orFcuvXNhJh1Pn S4JLFssq7lsdlXEYLFeO7iCpsoeEuDQZRQus+40z4ZiKzZfGqh0Txij8C4sO4nivhKozSMZhzMR67 58doyVPxBZtBqonPz5HD8++G2Cye3xFp0YwjxhN8HrqnnfLaMDS2T8rKFmYuOKyUCVkn4nNME1OmP R2+kdWozmWuuf2wa7o17y1AGWbUvm7Q8EWqa2dcT0Y/l/fcCge0kMN4Eo++bIdeHCZVpLcrL1x7Bb 1VY6fdzgy2VnC9oQnRyfbtE1k/K+zbBQSRPWyC67EMnX5Qef2wHj1w+vHR7UlrOZksh+r/yu4rBEy 9kcK7F2w==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lUp7s-000GjE-Mr; Fri, 09 Apr 2021 11:17:01 +0000 Date: Fri, 9 Apr 2021 12:16:36 +0100 From: Matthew Wilcox To: David Howells Cc: torvalds@linux-foundation.org, Andrew Morton , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, jlayton@kernel.org, hch@lst.de, linux-cachefs@redhat.com, v9fs-developer@lists.sourceforge.net, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/3] mm: Return bool from pagebit test functions Message-ID: <20210409111636.GR2531743@casper.infradead.org> References: <161796595714.350846.1547688999823745763.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161796595714.350846.1547688999823745763.stgit@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Apr 09, 2021 at 11:59:17AM +0100, David Howells wrote: > Make functions that test page bits return a bool, not an int. This means > that the value is definitely 0 or 1 if they're used in arithmetic, rather > than rely on test_bit() and friends to return this (though they probably > should). iirc i looked at doing this as part of the folio work, and it ended up increasing the size of the kernel. Did you run bloat-o-meter on the result of doing this?