Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4439981pxv; Tue, 20 Jul 2021 03:57:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOzoYGFkiKueTZpmTaT/Kk0BXegv3qtcEZdbFgxwItAdCnls946Pn9U/yWb1QlPUEzSGlY X-Received: by 2002:a92:ca48:: with SMTP id q8mr20473393ilo.113.1626778667679; Tue, 20 Jul 2021 03:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778667; cv=none; d=google.com; s=arc-20160816; b=GW/NEPNJrkeYlSFDclu/27YFDDaIvqXlK84UNxJFVzUuN3azgpqbc/i0p9CFZx4b1M pt7omLofF2AhbkBtyVknVAiEdrFCEzwIFRgt1pFLV0Pd0yYXcEd6oI5GgML8lPnioapR 4IeumvmmoNBb+gN50d9uDuG9rRPTCmwFwJCsQeJXGocuGs9npB/++PcWz6jANvymClEV A/l/lUBoG/VekUCzm1kFG8SsHQ4DSuuYumKmieO3rbW4dXCTwx0jZ/f6gqb/IC68Srw9 hr8u1x4Q4JimFk6CcFN5EiemByAcM6NrqC6R9YEVbaZ/EDcZyWjJebi19bQpSaPYInac x94w== 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=ZkGqjqvXyOdhQS8EsE/qLvkhMKFMrXd2SKiFrp4d+GA=; b=QxsfbZXZSBLYdafMbJPX7+BclVMbAbT5pymPrYOT09mX0WMqi0+NtZ/yUVUeg9O3mJ 55pAEr7TSOlisZaHYyaB7MmZJ5x/y+B3UePhWihFiG0R8ZEqpk9e4eLsxRtMAbOJm/o+ j/yAJsj9dbKQN5yzxgdnhDPThi5SbhLd3D9gwRk0zmBhGN6zpj22jq3BqNQOBqTWcl+g z3TMhSieoLeWHpn8vpFWvEimslamq5lLmKMExY2+SQ0RyxLaOHA0fPO+uJYZ43QSU6L+ /ZeB1v0W2UnM8geLLf3qaNSateSjLcPkvKa1T3MV1xAGTirxe3pOACeUuWH1oR4JM/6o OEDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XO8dbM+x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay38si23806419jab.21.2021.07.20.03.57.36; Tue, 20 Jul 2021 03:57:47 -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=@kernel.org header.s=k20201202 header.b=XO8dbM+x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238007AbhGTKOk (ORCPT + 99 others); Tue, 20 Jul 2021 06:14:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:35720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237751AbhGTKFv (ORCPT ); Tue, 20 Jul 2021 06:05:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94D87611CE; Tue, 20 Jul 2021 10:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777989; bh=u3WNKIIWddFWJ+6xuBJhv5SVltVDMVfMKy3ftJ4KvB4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XO8dbM+x27lrnSbSVJTe3iqoHovDFziUOeYMujYQy1FNorvanARzK68I8c1Nrfjdr umXYm7Ry4+UAQdeUfoVhqrtJa6G8rQm5K6VhNDkbBY6GinQ33K9xyvtS1eVZg4ZL/h xqKIbfBtI8/oVu3UMFw1iayKUPxUT5Tc7oKzGyFTUEWfJ6wpzYc08t2ifxG/hAvmSR luAFMA78evHtlksjkHo8lzvc8aPuq6xBRSs0RMUMtGARcv2bhRr9PtGzLEygyg4anm 11TX/DA5mgulVfLnxeucGvukao12Vfh1XBCYS8TEIoHruZHi8pGo8c52IAU8aAs44d J+Mf+HaNtYpMQ== Date: Tue, 20 Jul 2021 13:46:22 +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 024/138] mm/filemap: Add folio_end_writeback() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-25-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-25-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:10AM +0100, Matthew Wilcox (Oracle) wrote: > Add an end_page_writeback() wrapper function for users that are not yet > converted to folios. > > folio_end_writeback() is less than half the size of end_page_writeback() > at just 105 bytes compared to 228 bytes, due to removing all the > compound_head() calls. The 30 byte wrapper function makes this a net > saving of 93 bytes. > > 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/pagemap.h | 3 ++- > mm/filemap.c | 43 ++++++++++++++++++++--------------------- > mm/folio-compat.c | 6 ++++++ > 3 files changed, 29 insertions(+), 23 deletions(-) Acked-by: Mike Rapoport