Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3988315rwb; Mon, 21 Nov 2022 02:14:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf51OydyutzFcx5p2eeCaCXXylNFCLoCtbYxpgJofv33soxk+R646HlV4AmCQbZ7hW2XqPf2 X-Received: by 2002:aa7:d998:0:b0:463:a4a7:d3f1 with SMTP id u24-20020aa7d998000000b00463a4a7d3f1mr7227219eds.299.1669025671268; Mon, 21 Nov 2022 02:14:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669025671; cv=none; d=google.com; s=arc-20160816; b=JndYAPqkJGsXZ0NJ0QJ5Y0Jkmyt14bxZzl9c0qrji1IbzfcN3ZOB0A12eMbS1YJBhZ 9E4HLl+6M2m5r5IG/tFgLachBz/RIEXJSp5O3mdBjBxWfF3yXeHSddv8/R0SxHthasi8 M1SzPzm77hFR1kI5Vacd0nhdd8s2lbMRWcVaWPXm9UXRon6Ko+RJTXkQQY5EqAOt9buC e8cYMK9yzzYDE22bfe9TmX5NVwo6j2LgxXdCNy9XkfE+zueS2D7+uT/dBHTvARXgl+Tg D2bk3pMu4VAQIko3hD00hopudJwxP4dk2hCdqwdkPRHWU31m3YS/nnIcOLDUZ8w48lOb hN+A== 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 :dkim-signature; bh=Q4IViuQpwPEcZzjjxamaWcFWnSXKTM0MbrHGsCmeqkQ=; b=Yj48XtPM2AvxUv96HTnzr1q9X6YHT3DnahUk9oDexFQz/zgTqsooV0tm2NYWFZy+Ha A4rF3YMSBzHNJ498WlreRwD3vgnGlWn+yCNiSjK7QUMzqz9uIsFOoZ3FV67LujIjO5qG 5U8Gf3+LPy5AHHm6G5aiNeyVLjs51Dmb3NtEXt5VP0MpCrxSa5+pRPjNAbDD6Zq3W6Po D8TrQ4t3ty6dZlfpcXC/nk+N4u8iq7cNIXVuPK9a6g73BPZthJCJ0iU2io4RyxwuBVL5 s8vsiTcuNKbrbEgY/BFRHxR5wqCuHZPKjxr7+rTLweC5ZotEy3A7BXyo+BFLaYEE4WLq QnzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jWO57yYj; dkim=neutral (no key) header.i=@suse.cz; 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 h26-20020a170906855a00b0078d878d8fb7si5612628ejy.920.2022.11.21.02.14.03; Mon, 21 Nov 2022 02:14:31 -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=@suse.cz header.s=susede2_rsa header.b=jWO57yYj; dkim=neutral (no key) header.i=@suse.cz; 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 S231247AbiKUKH3 (ORCPT + 99 others); Mon, 21 Nov 2022 05:07:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbiKUKHR (ORCPT ); Mon, 21 Nov 2022 05:07:17 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F9BCA6A0C; Mon, 21 Nov 2022 02:07:16 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BC83421E2E; Mon, 21 Nov 2022 10:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669025234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q4IViuQpwPEcZzjjxamaWcFWnSXKTM0MbrHGsCmeqkQ=; b=jWO57yYjiG6oJ7os9jTrYvpZwMpk7iFCyXSFiozl+kCieh91bLV3UGjW3Bb55k3q0DM0iT Pye7XzjLd+H0jQuBklHlAxqt1U3WbzDWXLeMIK5xCM8SWsovnxyhrVye84ieWJeWn5QENP cU5eX4gfF1uRGBx6kvzWOREKWBTdjjA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669025234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q4IViuQpwPEcZzjjxamaWcFWnSXKTM0MbrHGsCmeqkQ=; b=C/PSDzkFpjgWFOKTSy3+AJAFIyRJIUsoxq+JCiCyQBTUxM8KgZql1lzPCYbkjZkbOfVj4b L4lcWr/A/flK1BAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A79931377F; Mon, 21 Nov 2022 10:07:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4s7iKNJNe2MjAwAAMHmgww (envelope-from ); Mon, 21 Nov 2022 10:07:14 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 2DEFDA070A; Mon, 21 Nov 2022 11:07:14 +0100 (CET) Date: Mon, 21 Nov 2022 11:07:14 +0100 From: Jan Kara To: Christoph Hellwig Cc: Jan Kara , 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: <20221121100714.73zjzpbgdvt5j7xv@quack3> 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: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL 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 16-11-22 22:31:47, Christoph Hellwig wrote: > 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? OK, I'll take udf and ext2 patches through my tree. Honza -- Jan Kara SUSE Labs, CR