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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 86B6BC07E95 for ; Tue, 20 Jul 2021 10:43:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3861C6120A for ; Tue, 20 Jul 2021 10:43:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3861C6120A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E1E4B6B00C9; Tue, 20 Jul 2021 06:43:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DCE9F6B00CC; Tue, 20 Jul 2021 06:43:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C6F576B00CD; Tue, 20 Jul 2021 06:43:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0203.hostedemail.com [216.40.44.203]) by kanga.kvack.org (Postfix) with ESMTP id A57D76B00C9 for ; Tue, 20 Jul 2021 06:43:31 -0400 (EDT) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3D98F181A8DC0 for ; Tue, 20 Jul 2021 10:43:30 +0000 (UTC) X-FDA: 78382629780.31.2AF375E Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf02.hostedemail.com (Postfix) with ESMTP id E83247005269 for ; Tue, 20 Jul 2021 10:43:29 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D5DCF6120C; Tue, 20 Jul 2021 10:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777809; bh=6cH5Jl0CX+wYlRijXnrox+m77wGnJ7blH2LxXxGvQ94=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J2SZempbeWlNxeWMltuyYTWoH59TZforrWOESpYyGT9SoZrSYJTDWSO0dvMRA9MH/ HsRqbCheJVAF1no4QQungT2P5YzfkKS3+cbd1eoHyFpYnS+f1EzmrCB+KX9RaLufpT 9cSuh87yjLbaNWTYSZxhIQ4jPoG5mDA4tFL0nhrdYY374Ea3HaL90wSguy5fXnKQBu 05RuMXvuLyLSO3/tRyX7ys8OuFbJpfXaB+3kE10gK18lDyrQOWqDK3N5GjZUozZvAJ fC56rzKLuAfq0PgxSlBx+sLiQ+N+mFgQE5MBpbB/ULhWRNnXe4SinazkFgOEWNGj1E C6GFW5gx16C3w== Date: Tue, 20 Jul 2021 13:43:21 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jeff Layton , "Kirill A . Shutemov" , Vlastimil Babka , William Kucharski , David Howells Subject: Re: [PATCH v14 010/138] mm: Add folio flag manipulation functions Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-11-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-11-willy@infradead.org> Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=J2SZempb; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: E83247005269 X-Stat-Signature: 73wqd6jxceue4p9xexj9pgruyyghneyk X-HE-Tag: 1626777809-973246 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 Thu, Jul 15, 2021 at 04:34:56AM +0100, Matthew Wilcox (Oracle) wrote: > These new functions are the folio analogues of the various PageFlags > functions. If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio > is not a tail page at every invocation. This will also catch the > PagePoisoned case as a poisoned page has every bit set, which would > include PageTail. > > This saves 1684 bytes of text with the distro-derived config that > I'm testing due to removing a double call to compound_head() in > PageSwapCache(). > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Acked-by: Jeff Layton > Acked-by: Kirill A. Shutemov > Acked-by: Vlastimil Babka > Reviewed-by: William Kucharski > Reviewed-by: David Howells > --- > include/linux/page-flags.h | 219 ++++++++++++++++++++++++++----------- > 1 file changed, 156 insertions(+), 63 deletions(-) Acked-by: Mike Rapoport