Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3145630rdh; Thu, 28 Sep 2023 04:14:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQrK4+3hH1gPAjguv72eMAgn4CdLIW1iaE3v1zOntIvIkHzxnTeUHAZUbSmWXEm+rVhfgn X-Received: by 2002:a05:6808:1448:b0:3a9:11cb:d5a6 with SMTP id x8-20020a056808144800b003a911cbd5a6mr1014015oiv.32.1695899646593; Thu, 28 Sep 2023 04:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899646; cv=none; d=google.com; s=arc-20160816; b=YcwMspOClS8zYEbEwvyeJO9OklgaLhEv5it09JFtdgQIU4ag3bV5TfAzAq0z/SyuUB eDYR4fIjKPQuVSBBPAmZzs66eqIPTIQH1cklm94z3RHUvlD8wCpxnuT6r9Xzo+ibnn1k gnTQzHsrowdf41Hch+jcspcnOD00+fhu480UhqfBiZcQSKEiQuZhuzvfN+fkbjhB4CGd buwLC4loOgtfDBfgZteF9fAJhfvDs4ZV3Fpk0VZqs8H7VUhKP1CB3ri/o8RxozVd8V2T tb8DgrNvqVyn47VovDw2IoZpVg3QpNYnXV2e7LeUyBJ2bknjrLp+cU7P1jQKwCk2/sBy n6Uw== 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=Q4qeyVIN6JymXOHyLs2dJeyiL1rKduj/uWJH2Y1dFsc=; fh=vEni2MBgs8NOTTBLK+Ol/uiLcZUCulMCJxVvCzIEaXk=; b=ntrlwipi4/haMxTGlvD5xrpvlgzVLOUoy1i5KRCyR4NR2zFpyGBXq5/KboXg5wo5Jt vZpXSSBgU+KF4FXnSu32WskY9hUP5HYk+jfcCMxoD/fqxzBtrKIs2HPqHhZXZBx5Hbz+ YvaU5Fdx3rL+kWg4TBX73VgdvzQExFFtOoXyHOZDyBT1rokUbHGp+YFdJKNZaW6Ab/iT ECPctyw5qWfixs/ItjpKr3gnIbZHQ3V8w5qyuKzsE+JLKim35xbC7cADqA33onbjv4pZ NZfv2wn+22G94/PR9xsCxegw1l5H5qUOGUw3HfIrflild6iqabL6X+XQeRn3kwYjwF13 CwvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CMX4cRe7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p33-20020a056a0026e100b00690d79bafd9si16737295pfw.168.2023.09.28.04.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CMX4cRe7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1F818836C036; Thu, 28 Sep 2023 04:06:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbjI1LFj (ORCPT + 99 others); Thu, 28 Sep 2023 07:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjI1LEe (ORCPT ); Thu, 28 Sep 2023 07:04:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4201A126; Thu, 28 Sep 2023 04:04:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EE23C433C7; Thu, 28 Sep 2023 11:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899072; bh=Iyo6HrfMYk3wC/qIL2NCNS+ijgdQoNLu5Do0CwWIXAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CMX4cRe7nYlE6JP+CkqNiPN8ZwdDGJzsk9x5J3OMxOU8iOzDw1x1GxOVztk3OslgZ XAO5vMX3k7auNx4st+gMh/NWnzoGWHlR172/72QVzJS6H//mcSahIaW2uMlzV2/2kd SHznbgkcjp4DVsHyX6FzumPspz4E8rArYICuA37E1oOnL3JZZTfcZFkiduNvs2wWRR Ci3Qq/XLejNEVUXwhIl4ecg5M06bU7E5caGAWZ1Qyilvx94imMsDLfhBcUHyP7MYSf NPgeRMwd3NdULhuNxJ7x4km331u+AjPvtsu+kEDiKs/k8c6Th5DqJjTiwUnGNSzlsd uYg8vOjl1YQ3g== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-afs@lists.infradead.org Subject: [PATCH 18/87] fs/afs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:27 -0400 Message-ID: <20230928110413.33032-17-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928110413.33032-1-jlayton@kernel.org> References: <20230928110300.32891-1-jlayton@kernel.org> <20230928110413.33032-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:06:24 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/afs/dynroot.c | 2 +- fs/afs/inode.c | 8 ++++---- fs/afs/write.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c index 95bcbd7654d1..4d04ef2d3ae7 100644 --- a/fs/afs/dynroot.c +++ b/fs/afs/dynroot.c @@ -88,7 +88,7 @@ struct inode *afs_iget_pseudo_dir(struct super_block *sb, bool root) set_nlink(inode, 2); inode->i_uid = GLOBAL_ROOT_UID; inode->i_gid = GLOBAL_ROOT_GID; - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_blocks = 0; inode->i_generation = 0; diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 1c794a1896aa..78efc9719349 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -91,8 +91,8 @@ static int afs_inode_init_from_status(struct afs_operation *op, t = status->mtime_client; inode_set_ctime_to_ts(inode, t); - inode->i_mtime = t; - inode->i_atime = t; + inode_set_mtime_to_ts(inode, t); + inode_set_atime_to_ts(inode, t); inode->i_flags |= S_NOATIME; inode->i_uid = make_kuid(&init_user_ns, status->owner); inode->i_gid = make_kgid(&init_user_ns, status->group); @@ -204,7 +204,7 @@ static void afs_apply_status(struct afs_operation *op, } t = status->mtime_client; - inode->i_mtime = t; + inode_set_mtime_to_ts(inode, t); if (vp->update_ctime) inode_set_ctime_to_ts(inode, op->ctime); @@ -253,7 +253,7 @@ static void afs_apply_status(struct afs_operation *op, if (change_size) { afs_set_i_size(vnode, status->size); inode_set_ctime_to_ts(inode, t); - inode->i_atime = t; + inode_set_atime_to_ts(inode, t); } } } diff --git a/fs/afs/write.c b/fs/afs/write.c index e1c45341719b..4a168781936b 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -424,7 +424,7 @@ static int afs_store_data(struct afs_vnode *vnode, struct iov_iter *iter, loff_t op->store.write_iter = iter; op->store.i_size = max(pos + size, vnode->netfs.remote_i_size); - op->mtime = vnode->netfs.inode.i_mtime; + op->mtime = inode_get_mtime(&vnode->netfs.inode); afs_wait_for_operation(op); -- 2.41.0