Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2477802pxb; Mon, 19 Apr 2021 06:43:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzki/ijyHJOSOiDvMwE0OV2HPYAzRhkVav4uvjyF0SrftEMeuezk08G1DvnozcJd6osEvHa X-Received: by 2002:a17:902:b78c:b029:eb:3bb5:ae8f with SMTP id e12-20020a170902b78cb02900eb3bb5ae8fmr23077979pls.44.1618839781481; Mon, 19 Apr 2021 06:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618839781; cv=none; d=google.com; s=arc-20160816; b=WfcBVeMLWRH9XVt1PgvnRqvW3dcmuqXdXC80Y9P9jSqXW3eAijFRs2ARASmEFX4ojC phCU/ntIYC3nP7eweaykYNLXuWQkpiS8zp9jQUTVGNkgz9l1a3wyvoanxxF7SUVxqxxR mMxGq1fW5pWZqm6rd9DMgMx+yvBSQlPBgZQCxa97SCpiK/33Oz0QqrkSsSgSLVeGYi/+ P31RrSc1CbmbruHIL2sSE4h68NbLg4tt/cGe27Hgl4P8k4IJYhkmKW2VRm86ktmt7q1F k0cMvCFUSiR0OOPEtGDbOzoHSJIoDxbAsgBSoNFBz0leeNVfg3sBiLZWtswp0ngRcpnV IXHg== 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=7/RKG+19pxf8L5NAMnjkraL88KOOFMdlzuOOrjxSYDA=; b=sW0E6KDO966FQQFBiagr79WXVoi+JBNxCZg+0Ca+5uAhCw8ZsRqlQpEGsjVddI0937 7d0CZrarqhr0wMAHvxA5/sUBsjnxeLy7V75ZaRgBUkEfC2w+rKWvQwJTUSLmxTdG5Aan DwmqghTKkQxyB8vYOWN+SDynRZZQby68fTlEAHVto5uol6L9HFpAKYeQ0wsTN/wKTq+h 0UIj4YOGIMI++KSta/clVbMAIhboEfzFa855gTKPw1ZnO5rvKsiE9aeFeadJbGx5qP9z XxcedFpOrhy74wrwE3JeXiC9cAv0M0DirmTgR/PN+1jgwOvIC2UBLjfUiAerixdM/UFP DhaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=alsWn3P5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 x3si17639344pgg.395.2021.04.19.06.42.49; Mon, 19 Apr 2021 06:43:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=desiato.20200630 header.b=alsWn3P5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243040AbhDSNjz (ORCPT + 99 others); Mon, 19 Apr 2021 09:39:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242101AbhDSN0f (ORCPT ); Mon, 19 Apr 2021 09:26:35 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2EEC06134E; Mon, 19 Apr 2021 06:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=7/RKG+19pxf8L5NAMnjkraL88KOOFMdlzuOOrjxSYDA=; b=alsWn3P5Lp9G6X9Jyv9ZZfPHEX gO9Zfo4rg77Qbv/qHepxOaro966jbcG8DT3lY+OMN7Pf1FFvmZBUMBNrWQiHP2ZOKdqm+2djYmNOT t1qUlWhyLD4RISUX7IJTyiVhihv9V5ja2Kb4DhyeP4fRt1dDD0Djjp8nvJWk2KzWn4ehtM9ueSfbP LEQkP5WyAdYgNZ9VmkzJuZDd+8KRNgF8HBUTwfNRx6pEk056t7i5wqV8I/LuQbK5CaUJPpPFsWjJZ jOIHUbOd4caFg1xPh4F1TgBN/XcbneWoxMqIrZCKAAK3wRZFyan1gsXbTU6wx91LWAVqFht690B/4 LrHMFzpg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lYTuN-009y5K-0P; Mon, 19 Apr 2021 13:25:47 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5273C300223; Mon, 19 Apr 2021 15:25:46 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 447932C23A96D; Mon, 19 Apr 2021 15:25:46 +0200 (CEST) Date: Mon, 19 Apr 2021 15:25:46 +0200 From: Peter Zijlstra To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-cachefs@redhat.com, linux-afs@lists.infradead.org, Christoph Hellwig , Jeff Layton Subject: Re: [PATCH v7 09/28] mm: Create FolioFlags Message-ID: References: <20210409185105.188284-1-willy@infradead.org> <20210409185105.188284-10-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210409185105.188284-10-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 09, 2021 at 07:50:46PM +0100, Matthew Wilcox (Oracle) wrote: > These new functions are the folio analogues of the PageFlags functions. > If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio is not a tail > page at every invocation. Note that this will also catch the PagePoisoned > case as a poisoned page has every bit set, which would include PageTail. > > This saves 1727 bytes of text with the distro-derived config that > I'm testing due to removing a double call to compound_head() in > PageSwapCache(). I vote for dropping the Camels if we're going to rework all this.