Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9476051rwd; Wed, 21 Jun 2023 07:57:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OW8fzy01eAWi6rBmcfjfU7I66RwA2EYLFVRpL4HBm8iFHE4jsPsyQtRNXe8zxOtHxA9d8 X-Received: by 2002:a05:6a00:1504:b0:668:7325:e184 with SMTP id q4-20020a056a00150400b006687325e184mr12740227pfu.16.1687359446588; Wed, 21 Jun 2023 07:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687359446; cv=none; d=google.com; s=arc-20160816; b=U5tszV82D+q/WKy+TSc0izTra1AuHGBBI424wGbhjtoLdZw7eh82uCn2leUayZIyne SDlRZ7KyOXN6l8rEnl218P0dtCrsVs1jyWHJ66lVjN9vonBtxHNdkN1rGmvO0TeVsAqN DTKT3RugfjZxkWQG0jIzs2RAbfObG167pnySDYtR5TaZiVwcvPlL3NFiSFzqWBYfF09Y 3NHGTtHEzJsLn2NqDZtPpnP1UWsVLO+UMfoLrZpuHgl4TPnCkHS3oOwPs+YOUluXnZln fEJG0lOq4oKTHmu9VJ2RaUfeALYE4oZpLRlBT8xNWrDEcJNSBycemw9XX8D/ArHM3Vc5 tGgg== 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=xLSx96NXLpWaKzK8X4XhgbBdyHeFmQoEDEqLuhkwJlI=; b=gn9J0OGjPdzNt21W/Na0AxNeuHlVpDQT3I6P3j54TFTwj0dryrYGJYxIgbBvbInKLe g+evPren5iiDq3Uyn3J1CzFztNZcaMH8MKv9k8szJQZkBSnWy6uMd6/rCeaEyuKbRbZX 0CDmLxDC+eA6rw5zksYwpgAkhD6LdFaA0jd07M5sSCqbW+bftXYiraRG/7PPmszLNz3i NUZZ1fcO6ylseGeVhAyHXccteLh6YzODmAdgqiyY9dDZXgBLyslDPxCAKhGSDVbKjTWU n/2EET9m2Dl6MHh8rhjy6VOK0TPYrwOMDtkgyejCgvsz7Q0khLqyo5t2d93TopLtVeiJ hYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r/+pHBDD"; 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 w142-20020a627b94000000b0066682621c50si4165632pfc.216.2023.06.21.07.57.14; Wed, 21 Jun 2023 07:57:26 -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="r/+pHBDD"; 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 S232089AbjFUOsS (ORCPT + 99 others); Wed, 21 Jun 2023 10:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbjFUOsA (ORCPT ); Wed, 21 Jun 2023 10:48:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F891BD2 for ; Wed, 21 Jun 2023 07:47:50 -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 CC600612B7 for ; Wed, 21 Jun 2023 14:47:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C63CBC433C0; Wed, 21 Jun 2023 14:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358869; bh=DdJ7C6tlCKMPlU8UZxtXIicsEOsFNUURmBliNnYmY1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r/+pHBDDfoDhN/xguQZStTpUaZ1Mqa+zGXrGzOwW3M1J4WigOpi5Uz1+Eg9n+jqYw 7dhKcbgZ6VYFg0JN79rteiBp+9Zon9lIuQTUVoNtPjrvWqhNJ6qRMg9cIZI+tCtLvS tqqdBCzeb37YJ7jAdyyExdnPSTGDSGtMFjZ/6so2LCCf4gUHptJutqwxSke7dKXr/j 8a1a964AWfU7qr+rtuNWlNTtOXgtJX+I/3o8v+X47b3fdzOutAqbYqyqUE4ZPgmiuT z1Y/o1/ZEmJthIp0SIWZEzVkbB3F70OyZD6FqMO/Avkyz9jT2aXwF+tHvD00RHlgf6 J1x1PR1+H+/mw== From: Jeff Layton To: Christian Brauner Cc: Al Viro , Jan Kara , linux-kernel@vger.kernel.org Subject: [PATCH 09/79] adfs: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:45:22 -0400 Message-ID: <20230621144735.55953-8-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 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 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/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..266191e6b80c 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_ctime_set(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_ctime_set(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