Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29471748rwd; Wed, 5 Jul 2023 12:20:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9eIaynFnhyE/vmlRabTHayESrqJcadkuI2wIers6IrXCe3xrXhGYL3gdXGbtcz5H0C+uy X-Received: by 2002:a17:903:1107:b0:1b8:8af0:416f with SMTP id n7-20020a170903110700b001b88af0416fmr15950250plh.1.1688584808932; Wed, 05 Jul 2023 12:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584808; cv=none; d=google.com; s=arc-20160816; b=HVmnBrOKeauEUINWuz8+Zp4ICdq9dfUBA6HRRjoyOWvXpPAD9qDcAq9Oe42hPVi049 2qx5GKVJdbSXRpq7+8ox9cnJtXGQCK6nFqr1YQa4XtbmGhViVd7iHB4IW3o6+1fC0obm TIYf8sOz64VVeBlIQWsdF28BSiMGvgGp+vNfi622KweHaDkNOeOu6xrbhjnf4dpew1vY O61ifJdIRbRRlgyvObfl73JTEImsg5hPqYTuOn08Y2TrrXT4BCnoGANA1BfC7fcTDjRk XbxhOMUWjDUL16ja0/rXNLzwjyMbxmqQmbMMub88DXGm7PBDVbHDTLR8vZwtZkUl1ykI MvWQ== 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=mnIHdFHUAbV8n/Cv/jRNe2Mor+2zsh7iyP+WuD20MUk=; fh=oKg0sQ52ibTnPQ4AWBarMRyKtcBX6SnKa6VwqkfrjeU=; b=ce4SRTWjjudz8qt91TMZv0ySgn4tAFFZWdCeYFR5tMvGaSolwHI3d5zbVp7C+KYtpL +vJcg4VHE1pe2ctGx6g8PtdVFN0TqurBiebpQD3kxXQ67qQtSxw7/IJFwSa7eeqXstI9 v900yhlYWob+kUIJ1mWuKCFA0IAwmSGEJoyrncMi4Od3Q8CLVhWLQh7ccFH2YvHgaGsP i9AaBS5803MGEmes/2pR+DB5w8b0HSQFO1lqyqieFS76gt5OMmow2d0EPtWeoi/6rN7k ghCOgMfNUVSmqhxHurjV5UE2/iza+NbMrGmytPk7G5UPjV1B1P9/zDN3fFDdPO/yxFu3 Bedw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=poksKqNg; 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 r6-20020a1709028bc600b001b80c35bc65si18094457plo.641.2023.07.05.12.19.55; Wed, 05 Jul 2023 12:20:08 -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=poksKqNg; 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 S234029AbjGETJi (ORCPT + 99 others); Wed, 5 Jul 2023 15:09:38 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 inode's ctime field is used. 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..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; } -- 2.41.0