Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1280820rwl; Thu, 10 Aug 2023 08:56:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExnihAteQ/+1L+QshzgpBlVrR2FssI7tWKJlhxmRNZgTwN8+h12sqcBdBJcb9X3oyccwWq X-Received: by 2002:a05:6a00:a94:b0:67a:8fc7:1b61 with SMTP id b20-20020a056a000a9400b0067a8fc71b61mr3551907pfl.11.1691682963645; Thu, 10 Aug 2023 08:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691682963; cv=none; d=google.com; s=arc-20160816; b=gJr6gIUrMsPlrw1wWpX0O4HLNxgZxF3pbjpbc4oE2SnTwaZMB20iZs12gGmb3nexd8 PRArJWHirDo6SMPmNxcThCXdstErZvBJBlXh4OSXzAYL2n1DnVwLsx7SQAu8mnK+1q0o 2o4uughAKmsIYX5dArq93cTxRfySVR4nCKsOzaF0PX/ZSS06g9u4/UwYw8aOuA6rmFjt Q7BBnZHS5+7KNzhpzJ/Q9JC27XXXxJV5H9yvDpcxZAm1RFsoSl8vDA4rFJwILiKqnAnI SFVksmOrwywhet5oKPJzwY3jSgcBnqHyIpcAJLe2/zkUFx6cwpMmf+VG8LVkDDlqMpeV fTtg== 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=Ip4/n/Ixm1Bk8FuN4QHn1uJbC9drYLK9GfOJr4AAEtM=; fh=zG3UFWmPYRH5SwJlZAKQfYjBiPHiGoLh+aOf+oGsCOU=; b=ykQvstGf7zg38ixsmoD2joXcYP13dTfE/0EQj1O9zCl6eS5ck3RsdBd68SUN2OuPdE rjnnGawYUqn7k2QoXgOrAEP9/idz+Yo5jlGym9xf2kDaGEi5l1R/a4YQd9wRrEpDKCM/ NNEQm24dv+YvvI71pTXEeZZMnrMfDUavyfqTcUxe0MIUHmMOnuF6rqZ+7IZr/zLAchnw OQwnY7KSaM7EMpBLhO8zGEdhNFtfehLwJn/JAJX+p/WMQTwD0puCag8PuOVZfIyODGne 4UM5V+t7jMJoWOH4er5TIB+5m0jcUuGaFRutQyrDnGxEXy4UUc9kh/WEHs08Bg/FH+Od lbVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BxZn5CuV; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 y7-20020a056a00180700b00687207bce71si1775116pfa.357.2023.08.10.08.55.51; Thu, 10 Aug 2023 08:56:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=BxZn5CuV; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235203AbjHJNW0 (ORCPT + 99 others); Thu, 10 Aug 2023 09:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234563AbjHJNWZ (ORCPT ); Thu, 10 Aug 2023 09:22:25 -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 C5A3226BA; Thu, 10 Aug 2023 06:22:24 -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 87C491F45B; Thu, 10 Aug 2023 13:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691673743; 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=Ip4/n/Ixm1Bk8FuN4QHn1uJbC9drYLK9GfOJr4AAEtM=; b=BxZn5CuV7wSpq0tyhpXX46wxkC2eNhpvXtx+4SQAFpJ9pyye7By5GEEIEfZKNGGEQE6JsB 7eWPID76Yfe8zcKuuGvCFoi6OQXj+UFFnF5q3oQPQcN7OTcyHYBi8RHG5YL/n4BTpIko7U Tmo3/RhJ+l6WQoLcKvmo7+XmOISCrfg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691673743; 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=Ip4/n/Ixm1Bk8FuN4QHn1uJbC9drYLK9GfOJr4AAEtM=; b=hZgJnbzJyp/A1AEZ80ZKTjDXrhIyKheFLlnGkTPjjeBvRLc/clNMuNeIEKUlwbW17I76ym sGmnBRPav34yKgBA== 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 76CA6138E2; Thu, 10 Aug 2023 13:22:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9LoYHY/k1GQLaQAAMHmgww (envelope-from ); Thu, 10 Aug 2023 13:22:23 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id E5E1BA076F; Thu, 10 Aug 2023 15:22:22 +0200 (CEST) Date: Thu, 10 Aug 2023 15:22:22 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , OGAWA Hirofumi , Frank Sorenson , Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/2] fat: make fat_update_time get its own timestamp Message-ID: <20230810132222.vzz5mqu3r64tz4yr@quack3> References: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> <20230810-ctime-fat-v1-2-327598fd1de8@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810-ctime-fat-v1-2-327598fd1de8@kernel.org> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no 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-kernel@vger.kernel.org On Thu 10-08-23 09:12:05, Jeff Layton wrote: > In later patches, we're going to drop the "now" parameter from the > update_time operation. Fix fat_update_time to fetch its own timestamp. > It turns out that this is easily done by just passing a NULL timestamp > pointer to fat_truncate_time. > > Signed-off-by: Jeff Layton Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/fat/misc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/fat/misc.c b/fs/fat/misc.c > index 37f4afb346af..f2304a1054aa 100644 > --- a/fs/fat/misc.c > +++ b/fs/fat/misc.c > @@ -347,7 +347,7 @@ int fat_update_time(struct inode *inode, int flags) > return 0; > > if (flags & (S_ATIME | S_CTIME | S_MTIME)) { > - fat_truncate_time(inode, now, flags); > + fat_truncate_time(inode, NULL, flags); > if (inode->i_sb->s_flags & SB_LAZYTIME) > dirty_flags |= I_DIRTY_TIME; > else > > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR