Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29494597rwd; Wed, 5 Jul 2023 12:42:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGyxOjna/7r8g2yJ5O4FVNeTulocAjk+8pOBbZhvjnvUlVn5vx+cftcg7tdL6Zu2WRoLLWy X-Received: by 2002:a17:903:11d1:b0:1aa:d971:4623 with SMTP id q17-20020a17090311d100b001aad9714623mr20631036plh.38.1688586179485; Wed, 05 Jul 2023 12:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586179; cv=none; d=google.com; s=arc-20160816; b=on0JW54XAfpk8TYoA6NCYhL/713BkNf3yancfvIbHLe8Ea9daZuk1gGV3zqD1R8wc0 7sO4VnHf75lL9BPUHDRfMqgiobxMIdCL/jSHC0VdXMwe3rwwBd57ZNGTxs3Gx6ZlVqT5 ibUoyXl+zwzHu4B4NyiP8fN/aZ16lis49+blAQ4pDJSCvaqTccwHcc478JtBxuVK0/ND eJ0XzMoZ1WlZen9FpfBk36vNQD9a+blhbcQSFBlH1kKhW/vxsfG/oAYlQHMiMr6xGqm4 y+8XZWtTurjQ1mZkTvzhbFOu5kaclWw8G0uyyMncq1J2sAHn8ebSipCFHear6oUw7I7K 5pdg== 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=Xxfb48DCKZe+tWFQR3GrjeJmRR1qCxGP7WKRieyMIFk=; fh=Jr1X45yGtgEHvWeVyllvi0324E8z3LU2UnsGDxGSgE0=; b=yJp8WuF5UPCgM4YnVEDjyWUf3a7vZInX7OWu0kOimaLBpfKPlJgkvfXo0+cKoie39b XFMIGkxs6UkAyBBqbvJy1GwiU6NqYrZqCH3fonoEIQR33xr6Q6FDTGloOnQpwAqIwq8/ Xwn0l4w8gTdK5BY5+EKkjXPloD/Y18C32j0EtL3ejpERtxaUZl1lhMeBepvGqokifRLL aFtKgPeGQKgg0G4gq5U9+Iwy9gT/AAS57GhzQyF04aF5pU7a+PLfGJ7IM1+zhCbO6kXG BPKi/X9JnQZQK0FnFkQGaeynSMdSGHped/z3dVAQ2fDd2oUMKHOH5HUo6EPZN5Gz1v01 grdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vb0jQvFG; 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 m1-20020a170902db0100b001b88e609e56si9562782plx.488.2023.07.05.12.42.44; Wed, 05 Jul 2023 12:42:59 -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=Vb0jQvFG; 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 S231562AbjGETGo (ORCPT + 99 others); Wed, 5 Jul 2023 15:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233655AbjGETFq (ORCPT ); Wed, 5 Jul 2023 15:05:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18C722713; Wed, 5 Jul 2023 12:04:14 -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 1777C61711; Wed, 5 Jul 2023 19:04:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E133BC433C8; Wed, 5 Jul 2023 19:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583841; bh=mmZWdyBieVaWGBZZnfvkzAkbN9EmGhp06VeUMrMf0Lk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vb0jQvFGFj3mucwnCa//HhQveytRyCoGk3wgFGhrsi4b7AXsQ3PT52+88afbjCuM6 n06kmVboyxcXGooCBW51ttyaB0HQ8xSNS7Syvp0dbkrEKaDw4OnOH8jnV3dvBvekqd Sjx9TzxqLSTiMz+9jnkt/zb9Tkd/pLBCb8UFaSH0XtA0RQ74P/qjEl5nyvOK1THhzz bqkSKlKyJvtwlKmNhoX7EtDcGnhrTb+a+QH8O/NeCb8HL9wRc1ytZlGqhsJWfStHx7 NtA+oE6LvQTSwklGqvOv/7cFuQJMqpU0F7aVJA50j03S4Kdofut7iyhcJkvN8Seux3 4YwUct8r9IJxw== From: Jeff Layton To: Christian Brauner , Nicolas Pitre Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 33/92] cramfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:00:58 -0400 Message-ID: <20230705190309.579783-31-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. Acked-by: Nicolas Pitre Signed-off-by: Jeff Layton --- fs/cramfs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 27c6597aa1be..e755b2223936 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -133,7 +133,8 @@ static struct inode *get_cramfs_inode(struct super_block *sb, } /* Struct copy intentional */ - inode->i_mtime = inode->i_atime = inode->i_ctime = zerotime; + inode->i_mtime = inode->i_atime = inode_set_ctime_to_ts(inode, + zerotime); /* inode->i_nlink is left 1 - arguably wrong for directories, but it's the best we can do without reading the directory contents. 1 yields the right result in GNU find, even -- 2.41.0