Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9514047rwd; Wed, 21 Jun 2023 08:20:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uNY4accWz3INRzjMmynXTTA/iOwA4MVHmLLkIs9XriaF/96yc1euJri2i2GzI8yB2X4M+ X-Received: by 2002:a17:90a:70cf:b0:25e:8fd9:8dc with SMTP id a15-20020a17090a70cf00b0025e8fd908dcmr5262126pjm.42.1687360823912; Wed, 21 Jun 2023 08:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687360823; cv=none; d=google.com; s=arc-20160816; b=0p1vgArCn4CSqPqtuDPvH/+zl5DpJU424dNYYXvxKbwYRLFMKuVHyU7ua/2COrQIbW 3qVTlq1yv2RE55SJ9BFY2D9oZh7KDtGlOB1GDTfhMPcWrZXyA9KUH2/PjC4JzrKkVC1c j+Blzw88gsUBPLXWc3yF5wcLueOmI2SEqonOJKJxlZ5fw0gCSp60o8xdyda9YUcUm6Fy cjCaXeFR2U41P6mXWqi45T9sZu6TW6ffJtY6dinsnGU9zauIoG1ahkqCFhuk/Ko1qg06 WwyZm7RGG13CQDweMLbWTE78bLky4AD8fFVDe4UiKvwqzBe24fSLPise/lcYczAWgKWP YvIQ== 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=rGfVq111FvX0bHXQnUvaAXTVhCqNTOApwa5RoyyRBuE=; b=kCWqhBYXVLMUXWFAonjE6DyvyK0hIjFlZM/xNAU/jHtZigVz6W2sIhfAaPYI0z/aZD 9CF4Mn5/YxbCD9/9g+4yjjanBfLuQ40wj0mqNtFFA+0qI/zNbfXY6w1B6UAQICwQ/pv4 I3KI01Etb/N6BSXYUT8sEaZs0pEjjqr4mEDYTciLwRbAFlBofp2bWteewuhkEasW+ch3 k/i9KG6Z+cp7vMKQMeXFGixWypDN4YnQ+XjtZ8XioEPvmQ4oPxJoRl4v1HwOA/LNAUKc SF2lfEgUCaOn1S0DH8cs8LppBqAJbNyj7lc1MdoHxZEewrB/gFe+2Coody105zGhNzAl hbkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M2Kiy/TW"; 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 h11-20020a17090aea8b00b0025e61a6f105si11731624pjz.115.2023.06.21.08.20.11; Wed, 21 Jun 2023 08:20:23 -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="M2Kiy/TW"; 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 S232949AbjFUOxJ (ORCPT + 99 others); Wed, 21 Jun 2023 10:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232834AbjFUOwJ (ORCPT ); Wed, 21 Jun 2023 10:52:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D6882D78 for ; Wed, 21 Jun 2023 07:49:09 -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 7DFB66159B for ; Wed, 21 Jun 2023 14:49:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C2CBC433C8; Wed, 21 Jun 2023 14:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358948; bh=TT+04QQZnz99pJf+AzV0cI1/YUAXPqB9Pvl9TXy66DM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M2Kiy/TWHPTWtVMq2IQKiNJpOFmMpEOkwMq6gjMdSpL/oBcqJMdghcj8XxI6ZtOap JV+svVArl//qprrnuYBiEC1FDGwGEY9LisET3pamty5lBdtY6b+/lNO72u1fefvTJ/ ydCYxiIhPK09JUDMErq7IgUVAVDKfgGzuPZdD4dL9hoi5p+JMGCXJRJFFT7j6OAr26 qMNCsMXefF56TkSPNkDXPXKF8rII+TfhuUSa9HH1L+0vx36k7nXrA1Nv+/VjVylQCX bg6fx60/SKkrRFj9qLKlZvFvvPw8bbJ85fko/U18hI2VDYAbatT/ff1v7Jp/02cDqO pqWN7agHhleZQ== From: Jeff Layton To: Christian Brauner , Mike Marshall , Martin Brandenburg Cc: Al Viro , Jan Kara , devel@lists.orangefs.org, linux-kernel@vger.kernel.org Subject: [PATCH 53/79] orangefs: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:46:06 -0400 Message-ID: <20230621144735.55953-52-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621144735.55953-1-jlayton@kernel.org> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 ctime.tv_nsec field is utilized. 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..14085537ba1c 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_ctime_set_current(new_dentry->d_inode); op_release(new_op); return ret; diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c index 46b7dcff18ac..4d12efb2ee85 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_ctime_set_sec(inode, + (time64_t)new_op->downcall.resp.getattr.attributes.ctime); inode->i_atime.tv_nsec = 0; inode->i_mtime.tv_nsec = 0; - inode->i_ctime.tv_nsec = 0; + inode_ctime_set_nsec(inode, 0); /* special case: mark the root inode as sticky */ inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) | -- 2.41.0