From patchwork Thu Sep 28 11:02:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13402624 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE5DFE732C1 for ; Thu, 28 Sep 2023 11:07:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232267AbjI1LHa (ORCPT ); Thu, 28 Sep 2023 07:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbjI1LFg (ORCPT ); Thu, 28 Sep 2023 07:05:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9709210EB; Thu, 28 Sep 2023 04:04:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1E0EC433BA; Thu, 28 Sep 2023 11:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899096; bh=KL3FQ3jpZEuK0Ewt0+ej83FFC76E2dh/iXYhCIu4n5w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BY7DmgdSg0T+ZpSlNxARM6JDMhM5D7IoMPX+GzyEbHOBEa/96E/62DMGJL3iRGmJ5 M2d9Z2nNlAmP1AkA5k51OjmsF2nBbJihcIvvO4xajT8QbDoKkJGGXE0ewKi4apiUDs qJSF0pQNNXsOaOnoAp5fR9EMEulPv5bDGtKDmHhMfyrVkWXR+PvGYTV4JmvSa5y2dj tTZL79V4eW614t4GX4jh2isrokRRWaY3bVEaO182EKuZP8feqMRKLapZn/FI7xtefV VYKFCrfCqQdZgB8mIrv3BOJ08hSNGaXLL2eu9TPaw9XGDxNKO0scPmF03/Fz1thbPk 2pIWXNAaJpEyg== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 37/87] fs/freevxfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:46 -0400 Message-ID: <20230928110413.33032-36-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 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Signed-off-by: Jeff Layton --- fs/freevxfs/vxfs_inode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index ac5d43b164b5..20600e9ea202 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c @@ -109,11 +109,9 @@ static inline void dip2vip_cpy(struct vxfs_sb_info *sbi, set_nlink(inode, vip->vii_nlink); inode->i_size = vip->vii_size; - inode->i_atime.tv_sec = vip->vii_atime; + inode_set_atime(inode, vip->vii_atime, 0); inode_set_ctime(inode, vip->vii_ctime, 0); - inode->i_mtime.tv_sec = vip->vii_mtime; - inode->i_atime.tv_nsec = 0; - inode->i_mtime.tv_nsec = 0; + inode_set_mtime(inode, vip->vii_mtime, 0); inode->i_blocks = vip->vii_blocks; inode->i_generation = vip->vii_gen;