Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29495237rwd; Wed, 5 Jul 2023 12:43:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9ojw/ReP6F0Pz7ss1BmR2I4ng+MoAsfBJ1c7jjeXjHgVd72x32Fv6VtTTHHVpDWoS4P8B X-Received: by 2002:a05:6a00:2d06:b0:672:264c:e8cf with SMTP id fa6-20020a056a002d0600b00672264ce8cfmr18135769pfb.7.1688586216077; Wed, 05 Jul 2023 12:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586216; cv=none; d=google.com; s=arc-20160816; b=DHxctgKno2rlMTaj/mrWhPDAkgag0po2wHRohN4EhSkH4siQHSQ/pJFJQDXKxbu6K8 OItnUfFR3EFCaRvodF0uptLGGGKRjn7/wIP/KtYEw13/tRgfiJIgGhoV12a4AQO9x/Or 1h3dYyBl9be/HQlRXocRm6hZKV0Qu5g7r+EVYy9zFAJ0s7GMRIUSFNKyQ4mNbm1kpPRO 9YJForRjq78jBET80ILooiZALdHQh+/FHooFOXzfl6RsBCoPDsemPnt/mM3sYtaWp0hP iIPiRP9wYLHwuZivyj8A+SqC64WseHkAIb3q+2zaOcbbIsYqboF/9X7MWfu0HANPbX1V C9ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RlLV1/lET3UUmw9wE0tKks2iO9dmVwg2C95RZTzkbE4=; fh=2C0TnyphuD/FB0GCymdU5zOxLE78QBj/MRL83eaVYV0=; b=Y4KcYV/BZjOxNvKOn5IUM+lyPrrtQ9cKkHBuNHPHh4/KMnIzoWNDYXzgJe7j4xMM90 /FrXt4JekpW+wc2Pj5/BrjlFQeY9ZkFl7dCKyy2QgakvDomN6rFstwmU3EeD/YpKSNPi 1U2Fd1qEGoRhDpaXml2GfORQ18lQ2P5XpzoMwSp3tRQiO/MzbwMUnkVDFAVWhPc76Rm9 rn4WsJZCGM54rl29GJLRhDztUcYE4JVxuxMO1n9UifhrG0lWFDi7WB/t0SQvduI/OE2K a/CicZCrJ3n32XAKw9hDnxFKdvN2gjfLvE6qPH8BFUzECJsGKYNr5tmVniAqQkSjQQuQ YVWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FsRHi7/X"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ff25-20020a056a002f5900b006826f3512fbsi10278462pfb.253.2023.07.05.12.43.22; Wed, 05 Jul 2023 12:43:36 -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=@kernel.org header.s=k20201202 header.b="FsRHi7/X"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234198AbjGETMY (ORCPT + 99 others); Wed, 5 Jul 2023 15:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233969AbjGETMB (ORCPT ); Wed, 5 Jul 2023 15:12:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAFB94693; Wed, 5 Jul 2023 12:06:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 26CAB616F6; Wed, 5 Jul 2023 19:05:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5E96C433C9; Wed, 5 Jul 2023 19:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583902; bh=4L4f2j1dXwzf+7ROukpRWmIKlAPq9hAU4+j8l9mv3ec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FsRHi7/XSrEQ04l3pTxAs6fvpw/dr0VlD+PtIh2GXYf262SVbChPIRQx1bY2dhICw pDD9WuuxW+SQKrg1L6Q3Y1vymeUP4a3WCFCbUYENVT8jGPNUkNHEIWmctBbLx7p4s4 Lle9utlMCkzLjgeZ8iT0+Hpwqgfi3nKHBWyzaQZ1YBeJ0Ch8PHnVWG/R9aE54KSuS2 eskMgt47uhF5IU2mUVXRbwfi24bHRrZWoPKwLI4kYHMVCap3W5jUf8IgwTrMHjA2O2 8PHdA2cOrZyL9euUcT763C8APBXZ5zj69AGX5ZkK5WpotGIpoMh6lRLeLb6uQ3iHWV E3qP4H2pFzomA== From: Jeff Layton To: Christian Brauner , Mike Marshall , Martin Brandenburg Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, devel@lists.orangefs.org Subject: [PATCH v2 65/92] orangefs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:30 -0400 Message-ID: <20230705190309.579783-63-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705190309.579783-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 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 --- 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