Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30513946rwd; Thu, 6 Jul 2023 07:03:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHnQc6xKJmJtC3UfrCkZk9SmCOYVKx64UOr/ZwUht17/w7cP0xiCOyu4t1FU0XNu0kIH0LN X-Received: by 2002:a25:4cc5:0:b0:c42:6af7:bb90 with SMTP id z188-20020a254cc5000000b00c426af7bb90mr1717732yba.33.1688652222106; Thu, 06 Jul 2023 07:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688652222; cv=none; d=google.com; s=arc-20160816; b=1DxI5IAY3e5csHov8WxRAvVzwJ7G+YRbyJArwMwkvTGT7Nh1nVXnK/1vhi+Jea8YSA uGqZKF/Xqy0+OJ3niVT4K1cQbrdDvpwbyo6OmeP7C6e/m37QIEChiKGi1jfifKjGIJXv 56rhvzL1Vhw5SRSEWe+hNsGCz2YasI7NAb8r0rELavK1M88JjjluzlCeViHGEHPsLCKA OfqzI6UmFw/zr3u34aNBuGiFA6LQFO6FPt7R3jWk4YFZE1ej0zyHy5gMaOEkIFkZ1yWq p2ZyuKQ1GPZmTHSk5Cit/L9b67LM5XwBnmue5QzKcnnpHUW3XxQq4N9yJqPAIuisZk28 FM2A== 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=XwvMPHSu7xNFjpf/tkeHJ2SIRv1M+NRRDyqHqUcYkIo=; fh=fmDjeG2+qJ8KEoFdGB7EiKLTTo9dhOC84TnlIdAoWBg=; b=Elp1A48EYiVyXVOpvYa7IoC7N8Ss/b7lr7hvz1jet57te9kQ1iSzUF5yr0/LtMp17R zKBMRGd3VU6+f1va+GAiB3ye8S3TbaO4yT8ZPZuf87zI/Go+ojoxSpK7rqvRE77Wu9nI 6k1Zu21fGNIoizbxpr1Ksdz3pye7WoCo8YmJWBpBWKBEwQwPkcg+t9Hy2DLf7vtME5Qd YseHAidIpjrifdde7Ho4K/wkwqVELGnWXvyuckvYY06ampgBqj7ui+vSb4amfxd8Rhuj XwxKhdW4CoyF7tKL43MXNZ/d9apPtilvA7j71Khjx7sWHjHmyox6rnY590+J1UhF+vqd 7SJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=b8SqHJVH; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=513F7K7O; 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 m184-20020a25d4c1000000b00b8f551d912dsi698574ybf.1.2023.07.06.07.03.20; Thu, 06 Jul 2023 07:03:42 -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=b8SqHJVH; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=513F7K7O; 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 S232704AbjGFNzn (ORCPT + 99 others); Thu, 6 Jul 2023 09:55:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbjGFNzm (ORCPT ); Thu, 6 Jul 2023 09:55:42 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27F851BE3; Thu, 6 Jul 2023 06:55:20 -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-out1.suse.de (Postfix) with ESMTPS id C5F022277F; Thu, 6 Jul 2023 13:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688651718; 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=XwvMPHSu7xNFjpf/tkeHJ2SIRv1M+NRRDyqHqUcYkIo=; b=b8SqHJVH9ALTskCt9O4rsNLoxpn3giYYrUMszctCcLJzKuGK9qE6uTm/tMYNWgjUAHjQhi x7VCChMaj+XVwZeae7io/NSGjoxG2PUDDTC8NAr0dKTW6Nit5G0/tBlBMyhBMaYBVorEdH R6Ft4HK5XXzEuj+9b6ZnGkRDv+EbHIg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688651718; 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=XwvMPHSu7xNFjpf/tkeHJ2SIRv1M+NRRDyqHqUcYkIo=; b=513F7K7OruLAfUOTXjNW+VYK3b+OMtcbnip4h6ypWcVNegk2gI7J34PZjwGK72GjQ8lJWp 71MH2jekxP2yh4BQ== 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 B66C7138EE; Thu, 6 Jul 2023 13:55:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rAOlLMbHpmTHZAAAMHmgww (envelope-from ); Thu, 06 Jul 2023 13:55:18 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 54CC3A0707; Thu, 6 Jul 2023 15:55:18 +0200 (CEST) Date: Thu, 6 Jul 2023 15:55:18 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Mike Marshall , Martin Brandenburg , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, devel@lists.orangefs.org Subject: Re: [PATCH v2 65/92] orangefs: convert to ctime accessor functions Message-ID: <20230706135518.xjfzcvf224wfypeg@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-63-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-63-jlayton@kernel.org> 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,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Wed 05-07-23 15:01:30, Jeff Layton wrote: > In later patches, we're going to change how the inode's ctime field is > used. Switch to using accessor functions instead of raw accesses of > inode->i_ctime. > > Signed-off-by: Jeff Layton Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/orangefs/namei.c | 2 +- > fs/orangefs/orangefs-utils.c | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c > index 77518e248cf7..c9dfd5c6a097 100644 > --- a/fs/orangefs/namei.c > +++ b/fs/orangefs/namei.c > @@ -421,7 +421,7 @@ static int orangefs_rename(struct mnt_idmap *idmap, > ret); > > if (new_dentry->d_inode) > - new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); > + inode_set_ctime_current(d_inode(new_dentry)); > > op_release(new_op); > return ret; > diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c > index 46b7dcff18ac..0a9fcfdf552f 100644 > --- a/fs/orangefs/orangefs-utils.c > +++ b/fs/orangefs/orangefs-utils.c > @@ -361,11 +361,11 @@ int orangefs_inode_getattr(struct inode *inode, int flags) > downcall.resp.getattr.attributes.atime; > inode->i_mtime.tv_sec = (time64_t)new_op-> > downcall.resp.getattr.attributes.mtime; > - inode->i_ctime.tv_sec = (time64_t)new_op-> > - downcall.resp.getattr.attributes.ctime; > + inode_set_ctime(inode, > + (time64_t)new_op->downcall.resp.getattr.attributes.ctime, > + 0); > inode->i_atime.tv_nsec = 0; > inode->i_mtime.tv_nsec = 0; > - inode->i_ctime.tv_nsec = 0; > > /* special case: mark the root inode as sticky */ > inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) | > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR