Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1795835rwl; Thu, 30 Mar 2023 01:24:15 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8VKhMVAslK7u3o/7u2h5/LzTVxFD2WJBDRTO367tamDqffzgdnMx9fjEy69ahKRPzIqhu X-Received: by 2002:a17:907:97c9:b0:933:80c:67d7 with SMTP id js9-20020a17090797c900b00933080c67d7mr26914611ejc.49.1680164655748; Thu, 30 Mar 2023 01:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680164655; cv=none; d=google.com; s=arc-20160816; b=xfF3ex3Cw/FQS/A7K27sdLisLucysoF9ZoS80R/oxvvut5n2htaqVG2nxrFnew7VSc lPxjEEA5JURSgIRJ9DSMYcFtxQwpDacJx6WbqUqwKIyKJryL5MFMNmL2tnOA7gC27PDU rs8QYJ/D9mvlCOqlwsrcSSRQHMAiUhjN8dLlqXWzBXhpQDlUU3QCx5nHXXWNx3i7WhwK yQAbp3oJeZDY0Rq8vs+5XJ7dx/uTqE/74m0MYjTe/CKVbjp5lOsTFjiLuNXQ2zrZ3Ihf B/bguABbWfyfRVdky8ct+gUzvHY8e3p0DETtyHFwQMZLJInqEr66ZFZCHDOf1affvHJ3 Mm2g== 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=5HQ1hG3raYLBNlVMyGJg6RogG331RllJgBkkYFlNngE=; b=f6SWwy3huP92AtcG7ut1QYDkMKqW5NERj9OV36PzIJoLYDi6OVoik+F2oXQCWp8g/6 SKccRdJlgiXWM1V/GdIHKXPukBKfX6wM9u3dY5dzlheCh/e67ZcX4YcZGAvo8bv3PEJD W0q570iJcOfUhJx694Drk5V+2LcKfwMsYPiQvAW4vSDlZJ1trMXD80ProaPdt6+cYJo4 Umb56hzkAJ+06MXezIDfdOk6OvKGmlwbF/AZPmx6AcltuZ1dbiJrekjEuO1xgomec3CU NSmfV8h7fDO0bJRnYvKefGhdJDHzEVTBLKk1JFClTgS09Sx55AkwKUY6KnPwJv+B/Mjy 2o6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Izk9pP4d; 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 jz24-20020a17090775f800b008d518d4bf7dsi32378030ejc.562.2023.03.30.01.23.48; Thu, 30 Mar 2023 01:24:15 -0700 (PDT) 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=Izk9pP4d; 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 S230388AbjC3IWp (ORCPT + 99 others); Thu, 30 Mar 2023 04:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbjC3IWV (ORCPT ); Thu, 30 Mar 2023 04:22:21 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A4E7ABC for ; Thu, 30 Mar 2023 01:21:49 -0700 (PDT) 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-out2.suse.de (Postfix) with ESMTPS id 5A3D01FE9F; Thu, 30 Mar 2023 08:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680164507; 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=5HQ1hG3raYLBNlVMyGJg6RogG331RllJgBkkYFlNngE=; b=Izk9pP4dJn3kn+4t/3a7o5rZlSwqEN8ODOW8yEovoNgYY3lqQullYo6PHHZ7XNnkTuCRII xkRkTUT5IyNVcuO6suhLWUH+F4seicuvogtY/PLjcyTCms1cuqSi1Xxfgpjf3KMF5cH64O FfA44UOIMAiTOnoY539/zS72okAztAU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680164507; 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=5HQ1hG3raYLBNlVMyGJg6RogG331RllJgBkkYFlNngE=; b=OZbawG7q4y51Alm/3cJnXnIr8tg5Ia1Ybz4xDPNcuoRxL5JbNLtmy6C/DiX/8mK0k6cDqF ZSD/pCpXV4GKI+Bg== 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 44B51138FF; Thu, 30 Mar 2023 08:21:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wD4oEJtGJWRSFAAAMHmgww (envelope-from ); Thu, 30 Mar 2023 08:21:47 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id A0283A071E; Thu, 30 Mar 2023 10:21:46 +0200 (CEST) Date: Thu, 30 Mar 2023 10:21:46 +0200 From: Jan Kara To: Christoph Hellwig Cc: Jan Kara , Ted Tso , linux-ext4@vger.kernel.org Subject: Re: [PATCH 06/13] ext4: Drop special handling of journalled data from ext4_sync_file() Message-ID: <20230330082146.muy4j4ehf3l7w3xi@quack3> References: <20230329125740.4127-1-jack@suse.cz> <20230329154950.19720-6-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=unavailable 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 29-03-23 17:05:45, Christoph Hellwig wrote: > On Wed, Mar 29, 2023 at 05:49:37PM +0200, Jan Kara wrote: > > /* > > - * data=writeback,ordered: > > * The caller's filemap_fdatawrite()/wait will sync the data. > > * Metadata is in the journal, we wait for proper transaction to > > * commit here. > > Nit: without the list, the two space indent looks a bit weird here. > > > if (!sbi->s_journal) > > ret = ext4_fsync_nojournal(inode, datasync, &needs_barrier); > > - else if (ext4_should_journal_data(inode)) > > - ret = ext4_force_commit(inode->i_sb); > > else > > ret = ext4_fsync_journal(inode, datasync, &needs_barrier); > > Also if there is not journale the above comment doesn't make much sense. > But I'm really not sure the comment adds any value to start with, so > maybe just drop it entirely? Hum, right. I'll just drop the whole comment. Thanks for the suggestion. Honza -- Jan Kara SUSE Labs, CR