From mboxrd@z Thu Jan 1 00:00:00 1970 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 319FFEB64DD for ; Wed, 21 Jun 2023 14:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232503AbjFUOx7 (ORCPT ); Wed, 21 Jun 2023 10:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232938AbjFUOxG (ORCPT ); Wed, 21 Jun 2023 10:53:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC1830E5 for ; Wed, 21 Jun 2023 07:49:36 -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 154CD6159C for ; Wed, 21 Jun 2023 14:49:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B53EC433C8; Wed, 21 Jun 2023 14:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358956; bh=q0RNJR11+YxsF2T3Uf94Nm8LmJtlc14VfDKVIjwrbxI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MJU3kKp2cCLJCijVGQWsIBH/mtgTrWrjyx6bwxp0If06rbf4YWU5zndMYVllGNrAt GxMkIz90NeZxUTQyv1W9pFQjDRm5DkX93/jR5ImoUOVzup8fgH8w59dRHMAGjbnRjX VqU9gKjhaloS+k1VW3pLXDV+EgYSgBOZZWJ593P8uTxHXOVD+ivizNxbOV8aNj06ze z7mW2mmc7CFY566MhpqwA1HuGaXLrrnB30Se2GcGwOX52hC0y9CrxPU28fFmfccyTA XVEYlcG0GiQWlGzRa7KNcL0ZMXDAYUY6+8Frc0ALYzrmyaCZjaVaUFqNAr85VIzkfk Gg9sYPgTI/3Bw== From: Jeff Layton To: Christian Brauner Cc: Al Viro , Jan Kara , linux-kernel@vger.kernel.org Subject: [PATCH 58/79] qnx6: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:46:11 -0400 Message-ID: <20230621144735.55953-57-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 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/qnx6/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c index 85b2fa3b211c..ff86c7100aaa 100644 --- a/fs/qnx6/inode.c +++ b/fs/qnx6/inode.c @@ -562,8 +562,8 @@ struct inode *qnx6_iget(struct super_block *sb, unsigned ino) inode->i_mtime.tv_nsec = 0; inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_atime); inode->i_atime.tv_nsec = 0; - inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_ctime); - inode->i_ctime.tv_nsec = 0; + inode_ctime_set_sec(inode, fs32_to_cpu(sbi, raw_inode->di_ctime)); + inode_ctime_set_nsec(inode, 0); /* calc blocks based on 512 byte blocksize */ inode->i_blocks = (inode->i_size + 511) >> 9; -- 2.41.0