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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 7F2C0C49EA5 for ; Thu, 24 Jun 2021 20:09:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A364613A9 for ; Thu, 24 Jun 2021 20:09:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232653AbhFXUMC (ORCPT ); Thu, 24 Jun 2021 16:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232120AbhFXUMB (ORCPT ); Thu, 24 Jun 2021 16:12:01 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D2EBC061574; Thu, 24 Jun 2021 13:09:42 -0700 (PDT) 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=TslytEABRAuGLwApOpB2eV0hV6tM9WN7rQO1mwwAm9Q=; b=VnuZe33ZCG6YtDDCyvIW38X5hK SA8usqSLWqIuP4suL8eBPp7llFhujIG+ExUb1xRWBhvH0dYWCtKVwHzRo82/DRZHoQirtqpjwr2XX CTBP4XE77K4V9+MVCLVbLETVyb5RgL4D1Lep2BK2dZHFOLQViSMJcPMgJlR7gc0Modq2Ik8UUca4J qtlP02qsK08DKGd2qoMgLv0nrVpAwptaNcvQm4sBT0Dvo+fNGvhaYP/AnB6m/YbUA3GbMXGAdC2dS erKQ8K1RhmF9MZGOK9pBJ6W7CbNK70VNwa7maqEDCZieRQHvIBDH0cnqfiWCfzlDgAWZqJKKQqnV2 8ngaGEPQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwVf8-00Gx5E-4j; Thu, 24 Jun 2021 20:09:27 +0000 Date: Thu, 24 Jun 2021 21:09:22 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 31/46] mm/writeback: Add folio_clear_dirty_for_io() Message-ID: References: <20210622121551.3398730-1-willy@infradead.org> <20210622121551.3398730-32-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Jun 23, 2021 at 11:43:20AM +0200, Christoph Hellwig wrote: > On Tue, Jun 22, 2021 at 01:15:36PM +0100, Matthew Wilcox (Oracle) wrote: > > Transform clear_page_dirty_for_io() into folio_clear_dirty_for_io() > > and add a compatibility wrapper. Also move the declaration to pagemap.h > > as this is page cache functionality that doesn't need to be used by the > > rest of the kernel. > > > > Increases the size of the kernel by 79 bytes. While we remove a few > > calls to compound_head(), we add a call to folio_nr_pages() to get the > > stats correct. > > ... for the eventual support of multi-page folios. Added.