From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C323C43462 for ; Mon, 19 Apr 2021 13:25:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A791B6113C for ; Mon, 19 Apr 2021 13:25:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A791B6113C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 173826B006C; Mon, 19 Apr 2021 09:25:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 124526B006E; Mon, 19 Apr 2021 09:25:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F07046B0070; Mon, 19 Apr 2021 09:25:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0139.hostedemail.com [216.40.44.139]) by kanga.kvack.org (Postfix) with ESMTP id D33B96B006C for ; Mon, 19 Apr 2021 09:25:50 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 91746180AD838 for ; Mon, 19 Apr 2021 13:25:50 +0000 (UTC) X-FDA: 78049189260.22.335DD2F Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf23.hostedemail.com (Postfix) with ESMTP id D01F9A0003AF for ; Mon, 19 Apr 2021 13:25:47 +0000 (UTC) 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> X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: D01F9A0003AF X-Stat-Signature: fgwtxxqftrpcgk14hyokx1y93t4p13ah Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf23; identity=mailfrom; envelope-from=""; helo=desiato.infradead.org; client-ip=90.155.92.199 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618838747-250148 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.