Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9565906rwd; Wed, 21 Jun 2023 08:59:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UMDOevIOqpRzf/EtNxN1kSKFq0Q5Fq0J0+jxJRmkvHpcT8VOiXSOUAIPUNYYgfa8kWb/D X-Received: by 2002:a17:902:d4c7:b0:1b3:8445:5dae with SMTP id o7-20020a170902d4c700b001b384455daemr11347789plg.68.1687363154420; Wed, 21 Jun 2023 08:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687363154; cv=none; d=google.com; s=arc-20160816; b=r/65eIDytVqftYbCkYKHvQaTZ7AVs2G2iouY8E/tpcDMeGUpd99fwtqksMMpa+YNCs Ylb4jFTaMsw4aPLk+0UsdQ8NNr+BS9rs8yPcrPgjG4I6qlwBHJy1y+gND5BkBPbpjPbH bNx1/R6BgQ+vfBPsEJbyzPcWD3G20p0IrS/JrNXLdrtjaWpl1XeXT0Z9tA5hlr9vSFUz eZrrpSFEw6SzFpyHZY5CJdtukju+3MasQFGMdUicWXtBh6IK+WbFd1HYBvc48wPMubvR BgOtMskw5l1CsP/f03AYgURF1huAKylocp3qo/pWOMjwH+yiK05Thwhy0RCNiu0o2GGX g1jA== 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=dgjZgLI+li1AM1ruqXm9kQWAL+gIe+luqEPf1CQ/kvI=; b=OQPvcSoZgeG83wOoJk10hR0kX3PGgQkDgJeJaGINJ7XUT8obY6AfIjR2bIg+ap4Iu0 epR62r1rBl1ao0KjTY0XG73Q6Ao9676JAyYb83l53MSv5n+LxD0hz5I3897LXg+36iyz hkgecNl3K0YjzIuU/kvetbqpHUrJFH+1Uv9Hfia0MZHW702ddeWo1FuZSA26CIu+ohW6 kZ4kv7jgpWhlmRIFwyFZHBq4PKtmrTJptSWdkP/Vp2U5Bw2/21jTgksfL3eyqep3Qaa0 jzyFDIsAghTBCBpevvkku0eK7FzN6P6Hb/h2zCvwqv60yEfPb2JVm6/tZPTHsgqn6QQs seYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Im8pjHUr; 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 jy6-20020a17090342c600b001b668cf7158si4256735plb.562.2023.06.21.08.59.01; Wed, 21 Jun 2023 08:59:14 -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=Im8pjHUr; 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 S233100AbjFUO4q (ORCPT + 99 others); Wed, 21 Jun 2023 10:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233213AbjFUOzL (ORCPT ); Wed, 21 Jun 2023 10:55:11 -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 2567C3C06; Wed, 21 Jun 2023 07:50:40 -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 E308F615B8; Wed, 21 Jun 2023 14:49:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94ECDC433C0; Wed, 21 Jun 2023 14:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358968; bh=779b5HE/gvZfyI1PxNLGg0MlvOtGaaXF4FcVZ7xYTIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Im8pjHUrm9nuFtUPKuM8vt6t+ZDLxcnatmzdgIVyfOyIM59sPWXF8qu4TWQRg3zcC 4vTcClWgaTi9fHtCXeLeu//chHjKju8AMuFU6O/LX4AdDt8b1sAlm+Vq4CoYcCH849 uP5lIbhLNZ2l9HfkEZVfwE52vLArtLLG8SkJ3len8vwlo+PvpZr8XDNphqy1VVPWlj 3dCwlhwnQbpP6pOjVNX7cKTTYDga5xewV22cckb1dJDRyH2stVoX6+9/OFnBfplBuB 4hXxLyzWAbqVoE2c3OMF/I1rxDwOftY1dKwQh+d8vtfwsPK22ffp7SxXWMAsw5SJ1Y VY8uxgAtkE6EQ== From: Jeff Layton To: Christian Brauner , Steven Rostedt , Masami Hiramatsu Cc: Al Viro , Jan Kara , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 65/79] tracefs: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:46:18 -0400 Message-ID: <20230621144735.55953-64-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/tracefs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c index 57ac8aa4a724..aae4b5645efd 100644 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c @@ -132,7 +132,7 @@ static struct inode *tracefs_get_inode(struct super_block *sb) struct inode *inode = new_inode(sb); if (inode) { inode->i_ino = get_next_ino(); - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_ctime_set_current(inode); } return inode; } -- 2.41.0