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=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 0EFF3C4743C for ; Wed, 23 Jun 2021 08:07:54 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CA6DA60C3F for ; Wed, 23 Jun 2021 08:07:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA6DA60C3F 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 B35686B0011; Wed, 23 Jun 2021 04:07:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B0BDD6B0036; Wed, 23 Jun 2021 04:07:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9FA676B006C; Wed, 23 Jun 2021 04:07:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0118.hostedemail.com [216.40.44.118]) by kanga.kvack.org (Postfix) with ESMTP id 70B496B0011 for ; Wed, 23 Jun 2021 04:07:52 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id A629A1C987 for ; Wed, 23 Jun 2021 08:07:52 +0000 (UTC) X-FDA: 78284259984.07.B2EDF82 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf27.hostedemail.com (Postfix) with ESMTP id 6C4338019111 for ; Wed, 23 Jun 2021 08:07:52 +0000 (UTC) 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=s0d8JTUB1/iJ0/Hk5yG5Evr+fy0RTYmyaYwNwEt6dR0=; b=kDaL3XwXuN5IM/j/oV/Xk0NhIg DeWLWiIlQg605bdIVW3YfMVIiicDR4Nbia+LCL0KbRCfNvLxmErN/1tNg8Y1IcF64PHxWKT1WmSQQ sDdVf7z39up166bMwVIrs94pSXxNOn/p3ZhbWPE9Xuq916hTtQF7nsMyM6com7JlJDgwDwLHlyPy/ JcBYrW6ZKUm1xhY3tgCyfom8oXN0y/3mw1N2+FAN0J0Z3s+46YYQinnsDZno3IPv4H/Mw/tGVWLGt IuVMJPv8JQ6ZDpaUfVziSBaM51gXjdO5fpOjPwpp0quHDLa7PgTI8vgz3vak5uCB8v/2w3EsL2NCk Bja8PmRg==; Received: from [2001:4bb8:188:3e21:6594:49:139:2b3f] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvxua-00FBuJ-94; Wed, 23 Jun 2021 08:07:11 +0000 Date: Wed, 23 Jun 2021 10:07:03 +0200 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 09/46] mm/swap: Add folio_mark_accessed() Message-ID: References: <20210622121551.3398730-1-willy@infradead.org> <20210622121551.3398730-10-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210622121551.3398730-10-willy@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=kDaL3XwX; spf=none (imf27.hostedemail.com: domain of BATV@casper.srs.infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=BATV@casper.srs.infradead.org; dmarc=none X-Stat-Signature: fethk3m5sgwb1zkiayepg8wuybjj466y X-Rspamd-Queue-Id: 6C4338019111 X-Rspamd-Server: rspam06 X-HE-Tag: 1624435672-671528 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 Tue, Jun 22, 2021 at 01:15:14PM +0100, Matthew Wilcox (Oracle) wrote: > Convert mark_page_accessed() to folio_mark_accessed(). It already > operated on the entire compound page, but now we can avoid calling > compound_head quite so many times. Shrinks the function from 424 bytes > to 295 bytes (shrinking by 129 bytes). The compatibility wrapper is 30 > bytes, plus the 8 bytes for the exported symbol means the kernel shrinks > by 91 bytes. Looks good, Reviewed-by: Christoph Hellwig