Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3177394rdh; Mon, 27 Nov 2023 08:02:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEEyb/Yg/ZF8AQbjQA60Z/bNxdcKCtQ++VHgcvGwIfoI9UKvH7dX+/qf33XatfAGRvSVfi X-Received: by 2002:a05:6e02:20c7:b0:35c:daf4:6984 with SMTP id 7-20020a056e0220c700b0035cdaf46984mr3588543ilq.28.1701100949434; Mon, 27 Nov 2023 08:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701100949; cv=none; d=google.com; s=arc-20160816; b=mrR7vscrSLllUtW5nyazNf8hNZFkYYnqt8c5VkA5OYcHYf9PtU1OAdQsAdN0dMtF4S 3Zej+pdOzSaPyLouZ4NQkfh6F3ph3cpxM0JgGzUFZwq8RT00/zaCTHfC+UtYcd637NIY ZA1C/IsD0QQw6eyvHJq28XytD9RoSGzNh4lT5iz3qYE5rbxN8/U+mMCGoFXm9I+gqZmV ScWq4220Kxfcs+a5AbiWvQU2kud2DsXdCj83w74PjfXM/lVyzg3ycHx1PBcd0bjuA3Il hl0i5MGkJpNT/ZwxPZfwHu2CWzRL4BvktcvvOlJG0JM2mT+DpvlPx89A+Zwly3VgOdIa oOYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=L4yJ90L+MIJiFG+Lj/0fDkAAq8vkzO1tAs0Dt1atZJQ=; fh=GoU6JU0bo4+bsRcHrGcWeklCQg/FZ2UWg4e+tPPrLn0=; b=Pf4gf432564/NqLQZxibjvBeCDFQ72LbSokfCNcFYG3+YVA6FLuLZkTa4oZvFPHMyq GenDJr6T2QjuWgDVvlFTIUQGAaWxyd28t1UKg+Z0v4CmDU6ZFnC/P/TkY51aItDOgxdX RMbrDNbp5oUH9QkNsZziYFubaLeigJu5RESy7Y1UsLIBQtUTFhatJyr47IOWepoIKOVg JVRk3sAFWSTmqC87wZLEUhZCeGtvNbz1BIeZx/5SHxKVCrCZMW0rcXvNEjxmOnCKn0Q7 YFmsVMeAJvuxo9VnXWPAUxJqtmPRw1Bg2nSE3zuJyNSv8Id4FqXexNaJvwYBsIdY0E92 9eyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CaF4o0IH; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4+bounces-197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-197-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j17-20020a056e02219100b0035cb3bae269si1778388ila.60.2023.11.27.08.02.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CaF4o0IH; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4+bounces-197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-197-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 851EC281847 for ; Mon, 27 Nov 2023 16:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42DB334CF4; Mon, 27 Nov 2023 16:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="CaF4o0IH"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="UiXnvop2" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 209C7BC for ; Mon, 27 Nov 2023 08:02:20 -0800 (PST) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id ED7E31FDA8; Mon, 27 Nov 2023 16:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1701100935; 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=L4yJ90L+MIJiFG+Lj/0fDkAAq8vkzO1tAs0Dt1atZJQ=; b=CaF4o0IHZFoGV4B0tQF6VKegyiG0+Y2eHSCcYlQm9sudiShTbC2nlLEpePeiI3dXb3+3PI yj1s0KNVBWU4zLnE7t/gvmnGiG0OhnAFohqltbs8jVK8ZNoRkz4XZhTqtgvVXvl8o2pPh3 lnsijo9MzXPVhHEG7hZfuP2owK7GL8w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1701100935; 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=L4yJ90L+MIJiFG+Lj/0fDkAAq8vkzO1tAs0Dt1atZJQ=; b=UiXnvop297bU2N5PcMm8JvPfP40QVYX5cQBxoHv5EcL3H++Q4ZCLos12c/OoHKkQ69RgZi BJHOt/6OhzyvjwDw== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id D809F13440; Mon, 27 Nov 2023 16:02:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id 4UJ0NIe9ZGXDWwAAn2gu4w (envelope-from ); Mon, 27 Nov 2023 16:02:15 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 3EB85A07CB; Mon, 27 Nov 2023 17:02:15 +0100 (CET) Date: Mon, 27 Nov 2023 17:02:15 +0100 From: Jan Kara To: Zhang Yi Cc: linux-ext4@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com Subject: Re: [PATCH 1/2] jbd2: correct the printing of write_flags in jbd2_write_superblock() Message-ID: <20231127160215.7wyowq5nt6ss2xgk@quack3> References: <20231125121740.1035816-1-yi.zhang@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231125121740.1035816-1-yi.zhang@huaweicloud.com> Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -0.12 X-Spamd-Result: default: False [-0.12 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[8]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.cz:email,huawei.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.52)[80.34%] On Sat 25-11-23 20:17:38, Zhang Yi wrote: > From: Zhang Yi > > The write_flags print in the trace of jbd2_write_superblock() is not > real, so move the modification before the trace. > > Signed-off-by: Zhang Yi Good catch. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/jbd2/journal.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c > index 30dec2bd2ecc..e7aa47a02d4d 100644 > --- a/fs/jbd2/journal.c > +++ b/fs/jbd2/journal.c > @@ -1791,9 +1791,11 @@ static int jbd2_write_superblock(journal_t *journal, blk_opf_t write_flags) > return -EIO; > } > > - trace_jbd2_write_superblock(journal, write_flags); > if (!(journal->j_flags & JBD2_BARRIER)) > write_flags &= ~(REQ_FUA | REQ_PREFLUSH); > + > + trace_jbd2_write_superblock(journal, write_flags); > + > if (buffer_write_io_error(bh)) { > /* > * Oh, dear. A previous attempt to write the journal > -- > 2.39.2 > -- Jan Kara SUSE Labs, CR