Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3145846rdh; Thu, 28 Sep 2023 04:14:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMjWhRwtnWL1f13RjVQVc8Ips4BTA40N9TCpArLr4np6dtp4iYz/HDPxdEvXStblTEklil X-Received: by 2002:a05:6a20:3d8a:b0:137:74f8:62ee with SMTP id s10-20020a056a203d8a00b0013774f862eemr952375pzi.18.1695899665373; Thu, 28 Sep 2023 04:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899665; cv=none; d=google.com; s=arc-20160816; b=uApovDNbohLqPZChK8ZCCapOg6Dca81B2KqMup1JjX4JjA3czaP3HCSAEbWfNA3QVQ 4LQaxqAhHnwvx+/H28LvVLjS6zVrLHVGdF6R3GXtNRmXoiVvw3Ne2+P4Ptc9nbs1YXx5 yGraRIJz+fOXIWwxZjeuvOmD6GSZNgVtD05mDhUsK80mr2GD5bIrwqj4EGucjhA0JCmm +ppoZD1Z7NE1d3wsvke6AZMAlms0gvfkVw9jY1tL7mrs3xy0Bo7N8u2VhVlmUBwF3128 Nf4NHo5DIRFOpMITg6giPf555ZBRNSy1HdJulNj+CU77bKRAmKggJaXBPiCO5Q347cjN G20A== 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=3ih3xIJidfnuRLkDcis/EijIMP3z4vqZM0O2VWK1Tyg=; fh=GVt1ijfE6qyOdTZiw1ZWHf/IufkX/oUdAm3PK+I/G6s=; b=zejqwehgrea218lAPwCYKord0/ZDn5hk73hLBTWce205e6ZfRHP4g7EoldNhpHaWHr vbgKl9b5NDZscB9NLsFpUNr2ZrD+tzx2ewChyR3FfaDCp5u8fscFo3xjzB6QP0li+9+U i0+KVuEqiQhYiizhifqaGEOJ4tRDjLoJznUztUCMjffGLC6Y4DNWuSMTvjG3U5ol3TTR ww4p7OZWcz8Ju2MsVheyyDpSwXRzRFpvDmT9ILpgxVer2t0AHhK+RrXQyYQJedaB8D0V cPlVz+BWXUtOKLNI3rvpdXTG5vNZYC6OLssMLHZg7JCLWHDqDT/USBEpmR35VpcOUkiZ rPmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P9RRTyXz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m1-20020a170902d18100b001b83767e879si16647426plb.266.2023.09.28.04.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P9RRTyXz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B7460836E247; Thu, 28 Sep 2023 04:09:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232493AbjI1LJU (ORCPT + 99 others); Thu, 28 Sep 2023 07:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232470AbjI1LIV (ORCPT ); Thu, 28 Sep 2023 07:08:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A4FB1FCA; Thu, 28 Sep 2023 04:05:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ABD1C433CC; Thu, 28 Sep 2023 11:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899122; bh=E6oS2zOcODx/9WfXsAOvYmFNqLdc+m+M1LwLfi/Jt9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P9RRTyXzrby0QpT7bxb6Q+L2KH2Wt1LYsrklfbCXM31yTwGk4+yO3ool/4uYXlmkL kZ1+zSUhnVhVphEdQC8MsWU22GfTyKcOuhmvXrXl/lWJQe355gRT15ACsAX8AWdoXi oWfLD2nlBQmMdQbPzH6rT6m8kRl5WxrAVskPnmPRgBHCZ2AQWLSY3Zcp1UxZVMEbSr wn5DK3zVACsKuciCtAFZ1nX9fVFFPPbAAZTYPyYdVE2BH+IsNSY7e77tB0yMIS+RZs b1wyYEgQi67n2DZV55HTat2f7SjaxjulRVLmOFkGvyfl0JYLxOJgXk6dQram9j1YpL MhCX38+Bd/vcA== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Martin Brandenburg , devel@lists.orangefs.org Subject: [PATCH 58/87] fs/orangefs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:07 -0400 Message-ID: <20230928110413.33032-57-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928110413.33032-1-jlayton@kernel.org> References: <20230928110300.32891-1-jlayton@kernel.org> <20230928110413.33032-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:09:53 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/orangefs/orangefs-utils.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c index 0a9fcfdf552f..42cb8517cebe 100644 --- a/fs/orangefs/orangefs-utils.c +++ b/fs/orangefs/orangefs-utils.c @@ -155,14 +155,14 @@ static inline void copy_attributes_from_inode(struct inode *inode, if (orangefs_inode->attr_valid & ATTR_ATIME) { attrs->mask |= ORANGEFS_ATTR_SYS_ATIME; if (orangefs_inode->attr_valid & ATTR_ATIME_SET) { - attrs->atime = (time64_t)inode->i_atime.tv_sec; + attrs->atime = (time64_t) inode_get_atime(inode).tv_sec; attrs->mask |= ORANGEFS_ATTR_SYS_ATIME_SET; } } if (orangefs_inode->attr_valid & ATTR_MTIME) { attrs->mask |= ORANGEFS_ATTR_SYS_MTIME; if (orangefs_inode->attr_valid & ATTR_MTIME_SET) { - attrs->mtime = (time64_t)inode->i_mtime.tv_sec; + attrs->mtime = (time64_t) inode_get_mtime(inode).tv_sec; attrs->mask |= ORANGEFS_ATTR_SYS_MTIME_SET; } } @@ -357,15 +357,15 @@ int orangefs_inode_getattr(struct inode *inode, int flags) downcall.resp.getattr.attributes.owner); inode->i_gid = make_kgid(&init_user_ns, new_op-> downcall.resp.getattr.attributes.group); - inode->i_atime.tv_sec = (time64_t)new_op-> - downcall.resp.getattr.attributes.atime; - inode->i_mtime.tv_sec = (time64_t)new_op-> - downcall.resp.getattr.attributes.mtime; + inode_set_atime(inode, + (time64_t)new_op->downcall.resp.getattr.attributes.atime, + 0); + inode_set_mtime(inode, + (time64_t)new_op->downcall.resp.getattr.attributes.mtime, + 0); 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; /* special case: mark the root inode as sticky */ inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) | -- 2.41.0