Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29479659rwd; Wed, 5 Jul 2023 12:27:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5lgQDc0SCii7T+9b8HxbrQ4bi7WjSHL6Rri5RpBhnEuuSM+OX0nGC21qWBZRiqveSphzu X-Received: by 2002:a17:902:a606:b0:1b8:a936:1905 with SMTP id u6-20020a170902a60600b001b8a9361905mr3181147plq.38.1688585265085; Wed, 05 Jul 2023 12:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688585265; cv=none; d=google.com; s=arc-20160816; b=jryvX8QFKDP+DBo3x0dQHGCse/bM/nGnL3+u+TKYBJsmhcOLUufs28bIzj69Gct82g o8HM9fX0JVMot9qVf636zX7qOvS1bW2fwmdLbYFG3yrktUJhMxXAdfVZFGX06jQpY/LN jxvu9ILaaeAq7sosrPMpyVPpobv97pVU6cjnYpNR1/74njBoi0GKTNDZ/vdCzTd8LTDm kKVHyoNwiaw1pX9BBegLKXBCY0qH54c+HiCVHZL27tiu8tk2mqujkXols/CFtYGhzHsW K+1eUQcd7aktFXkFESHZhtGna+wNb3RoUdRpqe2yKvkONjSkzAmhbcYG7gq1Q5/M2X9k rYCQ== 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=Q3Hjx2U9M6MQYpULcOMNEvcMPf/DL1x9XK9UcpkLInk=; fh=bfbYXdDCv4z55I4uSe8/b82Gpa+0jD3BhVcxRChxF/s=; b=Bqcav39fUzvvBOrHFRyKPCxrsc4sw1pzFdb4GNi6UNv1M6LgFOkfaEQKDLopFCg8wL o83nzZQX3BIpQm/NIKAEmW7eH5tLAspe35NLo9xLT08ZIZ2+wVRLszU3jOZpA/ZnuQSB P/5tiKvxuAktT1JMZKWSpEwNFEbIwTWGa0CZNc/zpolnvEPy66bj17mRsOvhE7mCaybJ fHYnqf6xeIqxLGzU4yH22JolngAu/XJ9pCz0vANL3GoCt7pBqwYMWwV3cNctbhXwmrmX MXrsTR5rGWaxND2aattz13rwLBDQ01AKGVf3evBP+IavXC/I7/lEPGMd8r8bjb3yirC3 9EYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f6WF5VO2; 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 m7-20020a1709026bc700b001b5395382a0si22790217plt.212.2023.07.05.12.27.29; Wed, 05 Jul 2023 12:27:45 -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=f6WF5VO2; 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 S234174AbjGETLM (ORCPT + 99 others); Wed, 5 Jul 2023 15:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234087AbjGETK0 (ORCPT ); Wed, 5 Jul 2023 15:10:26 -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 173A13C33; Wed, 5 Jul 2023 12:05:56 -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 DEAAF616F4; Wed, 5 Jul 2023 19:05:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4BF4C433C9; Wed, 5 Jul 2023 19:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583909; bh=DuTLhiLcWxa1Ea4hA0KeA7+NSKJEpmgvrsdDl0+Eiao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f6WF5VO2UF1eGXE4/XrP7NsTG5Xmz9ani0JItW5QC9PI1f6Gq+tWs88umqGvxtU1S mxAJz8ikSfaBY6nWlbPNwzFZba5npf6zlYdreW46SoOyDAqgfs1dfQeBQQu69QqwmK aToj8zIUTvW12z2rIQYeUVl3qcspYYgD859sIUKPbM2gLq2fk4ACehMIMRlMk0JgLx iWaTWDpabaBO+kCT42GzjKYhdq2SCezWszRVQJHXP9FAiEDEADJNuAFPeOprsDoo4b 0BwZvVtXHmIcqfYF3T8xwwb4DHv/jNgNd8epq/wDMxmaYDViAg+rR3cYziWRT3+0c0 oxeA0uY8lRDrg== From: Jeff Layton To: Christian Brauner , Anders Larsen Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 69/92] qnx4: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:34 -0400 Message-ID: <20230705190309.579783-67-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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. Acked-by: Anders Larsen Signed-off-by: Jeff Layton --- fs/qnx4/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 391ea402920d..a7171f5532a1 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c @@ -305,8 +305,7 @@ struct inode *qnx4_iget(struct super_block *sb, unsigned long ino) inode->i_mtime.tv_nsec = 0; inode->i_atime.tv_sec = le32_to_cpu(raw_inode->di_atime); inode->i_atime.tv_nsec = 0; - inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime); - inode->i_ctime.tv_nsec = 0; + inode_set_ctime(inode, le32_to_cpu(raw_inode->di_ctime), 0); inode->i_blocks = le32_to_cpu(raw_inode->di_first_xtnt.xtnt_size); memcpy(qnx4_inode, raw_inode, QNX4_DIR_ENTRY_SIZE); -- 2.41.0