From patchwork Wed Jun 21 14:46:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13287475 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8598FC001DE for ; Wed, 21 Jun 2023 14:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232849AbjFUO4G (ORCPT ); Wed, 21 Jun 2023 10:56:06 -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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-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; }