Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1631110rwb; Wed, 16 Nov 2022 22:39:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7pe/k7iKvtyxmThHUUkRsrskvmKQaP746nLb9+nAL1p9JzKtUf98Ng4JIMR6Bez0Fs6LRa X-Received: by 2002:a17:906:470c:b0:78a:383a:e714 with SMTP id y12-20020a170906470c00b0078a383ae714mr1028851ejq.105.1668667140145; Wed, 16 Nov 2022 22:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668667140; cv=none; d=google.com; s=arc-20160816; b=d/JgDSMNIgLC9zg6BBab4t9rzmjFlsDrti+UxzBpiDjquvJq8G9n4UpqVRKcoBHlD2 J5BMX63cikRu5ftHZmIraeT00wkaWArg8ddE/q1QX7iVH/BaIxMztrL8rVTeGMaT2p40 Me1vMJUCH+RHrREwk89t8z6iwaWtjymb8Vt6uFPQHL9QXPmONodm3wSTwpmf/97H5+m5 6ayPnQa8fRY9nSMFM/KvKTPysIM5QIqmV7+xeANF0CPbBdeHHTwXknMbZgpcZesgVmDH Y9e9/u4vsxgKs0LJGttNtcwxzZNPduHFt61cgZBC1imx4tful6Kn98zEgjDkIgQWhZpy 0leg== 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=sPTNEKYS/tLrxLQ4oI8+Sww3RL9H9VBsThKBpc9p/Gk=; b=luascfELKMDxFgvGSKZazRIqL27cwOqFos7eMC+As9oZ1puOyI17nOH5639poo3WqD CB8Fdb7kgvoLTCeyQS264dzKQSCHcW9xT4PLJGVa2zKZIJWzAa0r2RBQmp8cKG7ikXMS vxomgr9SjcL2Mk3OT5YIM07Nunrd+ZYnYLLnP3Wb77yPNuRzqzUlpKhdndKggATvLCLV Xd1DV7+DqF7XBAvcJCNNfsUFrIhcA4uXc8QtLcH1qiZwCFxoio1GkOjy0eMqiosO7tPy SY6zIFlfKvEeL85Hopw+CMyN5OGs5kDlkoPTFpZku9IAF1Zh5PI0XlytfZnnYghYSTxZ IAww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="K5/Kn6cF"; 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 z9-20020aa7d409000000b004635dccd3casi213753edq.57.2022.11.16.22.38.28; Wed, 16 Nov 2022 22:39:00 -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="K5/Kn6cF"; 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 S239203AbiKQGcH (ORCPT + 99 others); Thu, 17 Nov 2022 01:32:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232809AbiKQGcG (ORCPT ); Thu, 17 Nov 2022 01:32:06 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9D5C3136A; Wed, 16 Nov 2022 22:32:05 -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=sPTNEKYS/tLrxLQ4oI8+Sww3RL9H9VBsThKBpc9p/Gk=; b=K5/Kn6cFMb9LpqpOmmVr3AL3ai 0vZiISKwXqKUiJyr5NDOKZcFSpggWGsQkawGPm3P7UqdnGkVIGS0HN54pOlcTrJ8rePonZkJs3Cil 8bG5OKkn5iawEo8woWwszoVV1jztfvn8yDDH4UUHHaZgV+LkaxPvvIKtxh7sEHllokJHoVwbKvpOR ENvaQDOMDREuKSfPLrgrnsEd9eK2C9hvWh0vih31N633ucRXxLWAkuGXNyd7W0qzrIZ0pV3+UyCxA ivXc9kNZLeJEgwy4smO9WMtwJHqptMT8zrurd6/ISPrEggAEdLgDwvS6/Hx+XBRJGJhsBKQH7y+wz 1FJWbVoA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovYR9-00Aqki-1y; Thu, 17 Nov 2022 06:31:47 +0000 Date: Wed, 16 Nov 2022 22:31:47 -0800 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , 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 ->writepageo Message-ID: References: <20221113162902.883850-1-hch@lst.de> <20221113162902.883850-3-hch@lst.de> <20221114104927.k5x4i4uanxskfs6m@quack3> <20221116182040.tecis3dqejsdqnum@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116182040.tecis3dqejsdqnum@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 Wed, Nov 16, 2022 at 07:20:40PM +0100, Jan Kara wrote: > Looking at the code, IMO the write_one_page() looks somewhat premature > anyway in that place. AFAICS we could handle the writeout using > filemap_write_and_wait() if we moved it to somewhat later moment. So > something like attached patch (only basic testing only so far)? Yes, this looks sensible. Do you want to queue this one and the ext2 and udf patches from this series if the testing works fine? The same transformation should also be done for minix, sysfs and ufs. And a bunch of the others are probaby similar as well.