Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp834788rwb; Wed, 16 Nov 2022 08:15:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Xruy7VjhmVc6/XswmP1LYuA+o6fHjSjSTv9WnCfd1CGlUCE9ha8Vd+RfHjX2+NwOK9xrV X-Received: by 2002:a63:2243:0:b0:457:f843:ffcd with SMTP id t3-20020a632243000000b00457f843ffcdmr21010235pgm.101.1668615322782; Wed, 16 Nov 2022 08:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668615322; cv=none; d=google.com; s=arc-20160816; b=OFs/4WMIYvaFWnD6f42cMp8W2mLMJrtwbUZBVBf8SwP8zJ2/DKd1Ph/faXUUK3gUzU MHtgfKv3+TLoMqs6svLmLQfdH8do/QwnEEu5XgoMYYFYtDxpQKhEqZCX1O4yIqKSbPM9 F7Kt+tvi0/bHqeDhV0vvWsXoKnjwzD7gG+eeMU3HAY9/2HZBsP7FApaPD8B+EGj9qtDC dXe6fdpVjlHoYG34+nlQTzaQqMM35q94oONywHx0pW9MXJVeGsFWrBdKsdx3doKr59cT lCxOlZtCXfeqQXkppwPl27pDdqFqgG6VSx5RFw4jVaVkmqysjsdlxlISmtmwK9W2qCN4 HyGA== 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=GW/mPvUNa8ycmt36mg7tsVRrtOyrpDhOFXMAIJPJkOE=; b=1JaC4K3TojG9L6Ttwci5qpmKF8/ZeSdbbm2/Y1P+y3ZejKXBzoc85NvDneExBbwYDG Uhe84Kv1ADHO6kOZJknsyFvaqRCqKZTmnNiLPRizHJ4oVAwUV2uj1qN9FG/SoJccYGYS q+U7N4doErKyWUS1AAqffT+Es721rAyni07hCzZoHuENGd3QlW/d/WMOCrINN1zhwFcW 35ZGzS3C8T5xhdE7S+D27tMP5IuF0LrNRQBPXxU8C1HHaUIskj95OzokkJmVml/7eLWu 9Q1nA9Id69ATRbDIo5OuBYWM/XNJdPLNIVfjgxZo72A5p18VhyjFmRiSZQc+5ThFhIqP Lsjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="fv/z8Vq6"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm9-20020a056a00338900b0056bdae22580si14683335pfb.338.2022.11.16.08.15.01; Wed, 16 Nov 2022 08:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="fv/z8Vq6"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234117AbiKPQOh (ORCPT + 99 others); Wed, 16 Nov 2022 11:14:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234122AbiKPQO2 (ORCPT ); Wed, 16 Nov 2022 11:14:28 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB2A8120B1; Wed, 16 Nov 2022 08:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=GW/mPvUNa8ycmt36mg7tsVRrtOyrpDhOFXMAIJPJkOE=; b=fv/z8Vq6c3nCHc9j56W7inAPrc 0dHcgJhI7otNJASZ17MhPMVxlFeyoYf4kkWas5Eo1Ec3GLZ11u690qlx7P/v7oNDWAqAIH8H8yfAD /1+ntBb76BGes/DskjfMzwy5tnJE3PtJshRQjDhtJe3GdRxa3iYgGlrg4SgbIsOz1xLUVMP3prz4Y CYEDn4nLle2PKtPXe6tjYaTxXNTKPX+uOVZ0Q2NsIXk+iTVqbBXGxNbargAbd+zNmaZW4alJOF63V hcY8gOY7GqI+y48QsSAg6GKHAhI6xNQtvE8qNC021YrYrfXYgoK0+mLFPHkKrKnIUnGGe6t1rneei zCHLsFCw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovL3H-005l8R-B4; Wed, 16 Nov 2022 16:14:15 +0000 Date: Wed, 16 Nov 2022 08:14:15 -0800 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , Namjae Jeon , Sungjong Seo , Jan Kara , OGAWA Hirofumi , Mikulas Patocka , Dave Kleikamp , Bob Copeland , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-karma-devel@lists.sourceforge.net, linux-mm@kvack.org Subject: Re: [PATCH 2/9] ext2: remove ->writepage Message-ID: References: <20221113162902.883850-1-hch@lst.de> <20221113162902.883850-3-hch@lst.de> <20221114104927.k5x4i4uanxskfs6m@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114104927.k5x4i4uanxskfs6m@quack3> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Nov 14, 2022 at 11:49:27AM +0100, Jan Kara wrote: > On Sun 13-11-22 17:28:55, Christoph Hellwig wrote: > > ->writepage is a very inefficient method to write back data, and only > > used through write_cache_pages or a a fallback when no ->migrate_folio > > method is present. > > > > Signed-off-by: Christoph Hellwig > > Looks good! Feel free to add: The testbot found a problem with this: ext2_commit_chunk calls write_one_page for the IS_DIRSYNC case, and write_one_page calls ->writepage. So I think I need to drop this one for now (none of the other file systems calls write_one_page). And then think what best to do about write_one_page/write_one_folio. I suspect just passing a writepage pointer to them might make most sense, as they are only used by a few file systems, and the calling convention with the locked page doesn't lend itself to using ->writepages.