Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29474398rwd; Wed, 5 Jul 2023 12:22:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLLLwVezD74UcbG1jkmEFnjWlNT+UMqQEs4i9a40TrJnmFLAI5e4G96MLPDH3wY4x/Ikww X-Received: by 2002:a05:6871:4583:b0:1b0:649f:e68a with SMTP id nl3-20020a056871458300b001b0649fe68amr18514191oab.25.1688584971694; Wed, 05 Jul 2023 12:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584971; cv=none; d=google.com; s=arc-20160816; b=Lexpu+an59Zo5w+lRKl6nFTPHyT9H4wDQjcC+ApJwg7d6c2ELe4wemsBFHKqzHW8m7 4n+QgtYLGTt/RXlM8P9kWAgRL6m5lZXza+nT/LXXValgvBTnaiWOcwBdsLTgjL3Fd4dI MstRWle7Cm8bkmPfGNthrVoBuea06ho+0b+cvIcEetAPlYf6GX1KoR++WHXaCSymjbbt 4Q6qks46IfIF1qs8cDzmoCxZXdI4+VCJTW6mHksVm/adeqQaCAfBITIeAiSgabodMRDf LMhGBDg2tm2UrRvip8acYZZmoo7e+QhLPWOj1WDksJ7TIUiM9D1Kpzcu0bOws0B2iCMa rJyA== 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=IZTu0lqNN/Ui6kYvudHKMDvPAQt9Z2i64RonMPk5pw8=; fh=MnumwSc2Lu5kQ7dcvNoe84fV8IrhKdisdHLTZIbGVWE=; b=vLuSdEN5QmbLS+Xmo31Dx95c4Pl9ajG6juybjZ7ZpkS3hNQkKjeRp+m+cCF/4yGthP FVT9r8UuJlU2WT9eWQlJhhqCtPM9cVyMRAFttVZCjXfFGmWxNlPHK2LLET4Yyo5a9X/e 2EKbsU88cyeSuK6lG6HYDoF01zXmhUbnzv1l54IHddpAexGahDUpoKQ3D4Yok1/lqAai d8mt0dPJzsbuX6eFpaO7W5y0NFFY2JrMubMv90P3PSSF59zWHlvQPA4FNLgLua1Ldh5m n78uKGH5bscTPkOIQwdBfiVmSWhHsWTmhQy/DTMnmK+8Jrv7r6swMbHM+4D/ODuG+Pf+ 0lDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AMGB23AP; 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 f38-20020a631f26000000b0053f2fc4379csi22482334pgf.391.2023.07.05.12.22.38; Wed, 05 Jul 2023 12:22:51 -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=AMGB23AP; 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 S233533AbjGETFI (ORCPT + 99 others); Wed, 5 Jul 2023 15:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233640AbjGETED (ORCPT ); Wed, 5 Jul 2023 15:04:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B16E2108; Wed, 5 Jul 2023 12:03:42 -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 ED985616EC; Wed, 5 Jul 2023 19:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9794C433C9; Wed, 5 Jul 2023 19:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583821; bh=fdejnxV1LJvnaB0wtfuEm/JayRlnvFjmoK8r3gZzcgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AMGB23APQBhbU0+7gU0zX57RnL7A38MYS2ehUWP9J8yXQpkFUcO4rxbyzb1VHShSF dGftSU9lKa7rcsoKgZMWcpzoFtTLM9s8J6l1Fg9S+P/L8cyRNCXUzrXY5kJ9kPxxXl Oj5hJR0YbHRfZkCKn9B1ZNBl3MOS3maUKd3o5tZUSPfwSAKmHn2cCi6TtwN7xrv7pW aIWukeXI7rEcYeGE2aj5f2SG4LJ9RHfhHJz5PknkGDcmM8opALwrZZ6iA8S+o3vw2+ IHco4LdEeYd6RvlxQH48rCtcELnnPB6UWvJcvIE0d4ldQjJ4thrC3cxiLaB6QuFQ1K 9yEiJgc91mfVw== From: Jeff Layton To: Christian Brauner Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 22/92] adfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:00:47 -0400 Message-ID: <20230705190309.579783-20-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. Reviewed-by: Jan Kara Signed-off-by: Jeff Layton --- fs/adfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index c3ac613d0975..20963002578a 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c @@ -270,7 +270,7 @@ adfs_iget(struct super_block *sb, struct object_info *obj) inode->i_mode = adfs_atts2mode(sb, inode); adfs_adfs2unix_time(&inode->i_mtime, inode); inode->i_atime = inode->i_mtime; - inode->i_ctime = inode->i_mtime; + inode_set_ctime_to_ts(inode, inode->i_mtime); if (S_ISDIR(inode->i_mode)) { inode->i_op = &adfs_dir_inode_operations; @@ -331,7 +331,7 @@ adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry, if (ia_valid & ATTR_ATIME) inode->i_atime = attr->ia_atime; if (ia_valid & ATTR_CTIME) - inode->i_ctime = attr->ia_ctime; + inode_set_ctime_to_ts(inode, attr->ia_ctime); if (ia_valid & ATTR_MODE) { ADFS_I(inode)->attr = adfs_mode2atts(sb, inode, attr->ia_mode); inode->i_mode = adfs_atts2mode(sb, inode); -- 2.41.0