From patchwork Wed Jul 5 19:01:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13302829 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 2B685C001DF for ; Wed, 5 Jul 2023 19:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233942AbjGETI7 (ORCPT ); Wed, 5 Jul 2023 15:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234180AbjGETIe (ORCPT ); Wed, 5 Jul 2023 15:08:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A48303A89; Wed, 5 Jul 2023 12:05:23 -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 85113616CC; Wed, 5 Jul 2023 19:05:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21A8DC433C8; Wed, 5 Jul 2023 19:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583922; bh=j2FHLWwY3lGvOt5LLokAlhbkWWJYJoA+RCAfeF2LfzY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=poksKqNgXNeDO6UFWdVg9nxYWkZFdCSlRLtxCk9+5dLhCED/sXsVrn37aXqb7TQ2U S+r+UKtGn2oMkEdiD1grlcbIZTjNHYiFfYbgOYCJFiLIS000DWgUYh5emMNZ20kk60 iEHKLZO3c7TsMjbXvmY9ox/Ke6I3j9521sdqGmIN5iCkvgJ5Wc/WwVWpqlVhlS71va 0Ni1G51txKrfK9AQq1SyfHkbYMz3EDDTFQEKoVzC7Fpr2ZDC7x6IlzGfMBmyf3UdeF KxbCulggOWzJYpO/bc8dwlQZ3oPxsK7UZ7xN22jSFvZpfIUxLaPj+5StzA3AEZPeK8 mmwasQN0+9byA== From: Jeff Layton To: Christian Brauner , Steven Rostedt , Masami Hiramatsu Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH v2 77/92] tracefs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:42 -0400 Message-ID: <20230705190309.579783-75-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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-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 Reviewed-by: Jan Kara Acked-by: Steven Rostedt (Google) --- 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..2feb6c58648c 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_set_ctime_current(inode); } return inode; }