Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1287844pxf; Fri, 9 Apr 2021 05:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrCFWfNOGeEDkpq0FI/5igMkivc68g1Ez+jSWIdMvT0g3ViV+Gjbu5uMEDB2ZG0Xh3eDyZ X-Received: by 2002:a17:907:3ac1:: with SMTP id fi1mr1503853ejc.139.1617969687152; Fri, 09 Apr 2021 05:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617969687; cv=none; d=google.com; s=arc-20160816; b=l6WFutE0qICtXs0QMwT9KRDGuBMMlDqgF4kNZuAbJgZdEi/H8IdrzlXRm3D2Vd2tzO u6fyOG4V4pRm6iMbGQAr1OK9UND7vDTHLp19n1kwPGR4xA7pEeQsCAyv2UafMERx5yoW oMjl8mb5c5Q4BRuCo/rZnpk7Z+airu4f8nzp41JtloONNAXOuLpZB6Q1OpGLgiFwoP2B nCwKNcedOmrykOdOTQShL1B7ODZfybZVVMkm7VJ1XlX59yB4bskcnS/jQld9FGN79o+G BJRiUbMciQE5JJjuFrQGynfASqoaj4VDJugHWCuz6zj79NdZO8kai+u0h570XEByYltg iyUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=WpLBLcM5HPbHBdhYvmuIcG5jaKMHS2dswa4uwPfKors=; b=lR3CIPpiFjMf332SS15XiJUZtFTCVjjciuXRiZmFxlaVwBvFoJVFBbV0vG2qN9GxL2 VtRzmDNHK/hsQOCMMkRMPqbFJk6ytChKkcUg0MXMNruzXGjNbP5EKw6DADpzLX/gO8el 1PUusa78xD1+O7D47PPky+QvPlthszstNl/HLCP2+NeFzjQ5Idi3GpkfHgvdg1DUEHLk g4QriS7zTKJpNLhMN2LiTXm4/dCujix7pRq1nozH8U4Km5CKzXUz9e9hXNgG0wGlkXuL j8CBb8wjU2IkufzyrEkSoGiQm4A5fXgQotK2RvV/xq/cSdowVRgNgdaEafMxGf3c8TpO DuHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ddqJww6q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si1750092eja.727.2021.04.09.05.00.59; Fri, 09 Apr 2021 05:01:27 -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=@redhat.com header.s=mimecast20190719 header.b=ddqJww6q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbhDIMBD (ORCPT + 99 others); Fri, 9 Apr 2021 08:01:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45770 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232295AbhDIMBC (ORCPT ); Fri, 9 Apr 2021 08:01:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617969649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WpLBLcM5HPbHBdhYvmuIcG5jaKMHS2dswa4uwPfKors=; b=ddqJww6q/+Fvay8Q/YJyqvXUIiPe3AaiebmL5ZWT32Z8Jo/NS/uNofG2WbF5wvHvQAzsQZ JgsUv24XhKy9e7JAZ0W5LdP+UmhIi/motpJNcqpddAwbUMW81Ec8UPoP3sgAQ6ifrKToTK iiom43ZXPFzlL+2Z7Kol7I83wwtWfLQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-531-VXpQijEJOlSLOJb_BO2ZXA-1; Fri, 09 Apr 2021 08:00:46 -0400 X-MC-Unique: VXpQijEJOlSLOJb_BO2ZXA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 845A55B38D; Fri, 9 Apr 2021 12:00:44 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-119-35.rdu2.redhat.com [10.10.119.35]) by smtp.corp.redhat.com (Postfix) with ESMTP id C29B160622; Fri, 9 Apr 2021 12:00:41 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20210409111636.GR2531743@casper.infradead.org> References: <20210409111636.GR2531743@casper.infradead.org> <161796595714.350846.1547688999823745763.stgit@warthog.procyon.org.uk> To: Matthew Wilcox Cc: dhowells@redhat.com, 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 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <453416.1617969640.1@warthog.procyon.org.uk> Date: Fri, 09 Apr 2021 13:00:40 +0100 Message-ID: <453417.1617969640@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Matthew Wilcox wrote: > 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? Hmmm. With my usual monolithic x86_64 kernel, it makes vmlinux text section 100 bytes larger (19392347 rather than 19392247). I can look into why. David