Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29545134rwd; Wed, 5 Jul 2023 13:33:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfA5UrkjNCsd5Bb3vxBW5WLaxV1gSLzPRe/3JEJe9JfwPMb9PrY9TMiMJuXHCznhRgxK4w X-Received: by 2002:a05:6a20:a10d:b0:12f:68f0:87b6 with SMTP id q13-20020a056a20a10d00b0012f68f087b6mr5443557pzk.21.1688589229541; Wed, 05 Jul 2023 13:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688589229; cv=none; d=google.com; s=arc-20160816; b=TpEhhIqbdhqu6jdOwGzxZ5Te24Z3DrdIz5pFiEQaI8sAed8pNg4+W2oR/wVXuv3jGO LEM+6En8gz9Z0hzHHA1oyRUiStWiyVQ7RQp2k/R+sQAA0oBntlBL3qhfx4Wpb58r/0MF /cvK5TGxV2WQ/drfw9izoXzLsk7qj6VmChBOSnjhOdyWiY2IdxmbwR0d/Zv3d6QYvqoL 6kB5cAYL2tf/C8vCX+WxOueJqk79t8Y7XFtliOEIUCRtI2cy8SMFwq9mo9sGFR0rM5pC V2kXfPXdKt2Cec0ABB5tUDbbDhAVs/z3dVsD1Pi0Du9cGhE+TpccdujyAahi3kCGWqwP tuIA== 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=IYfa1+pE0T2erisD1fempdsgyVcUUV+rB8akz949B1Q=; fh=C3F3BinwmLxJ8F7hr6QyxbuUa6zJrlgp0/Odg0bQl0U=; b=a7k/RS9/aQyYavPthapxNVJqHktGVcJSMAGYQtNmYkGBWFc5k/8KgYwfcvCbG/rc42 zbHS0Tg9rGi/RYjm0hyddBEyPJWkbxvYZV5HCFN//cWeFvcbr1X+XhMy/ZgiB4MU8DJq WxYcK1lA0je2Z5fWCONBS35azbF4xhQozwG34kBRsjeonfY4fdAuZYDWvh9bxzJdF3Ss saceCNG8d0Yk8JlwQ+dzYM7S1dqUKiopoAHD2FqVCXf026Dp1likwLZOEGygvmd3cK4A YhUZtk+l1perLKc38ZGFUGUbmRGPKUhSL4FYy0bbNrnjYRiJ+a+oLrPFE1G0Y/ZuqIBz 9OCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Jvy/ZMtA"; 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 w1-20020a056a0014c100b00665dfbf3b1esi1538623pfu.270.2023.07.05.13.33.34; Wed, 05 Jul 2023 13:33:49 -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="Jvy/ZMtA"; 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 S234213AbjGETMd (ORCPT + 99 others); Wed, 5 Jul 2023 15:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234123AbjGETML (ORCPT ); Wed, 5 Jul 2023 15:12:11 -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 767C446AA; Wed, 5 Jul 2023 12:06:41 -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 117AE61659; Wed, 5 Jul 2023 19:05:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB099C433C8; Wed, 5 Jul 2023 19:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583919; bh=APonqwGt5CzNfjmUkmd25I4muRb/3bt+mHUzQm46fRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jvy/ZMtAwgjO7i3+DtGUaeRokw/RaZVluzeNY+QjImXpzyVnDYMqO1MtYtsW8Miof g1j7T/CgfxDiedagcyz+HupS0HST8OgckpQhiD9eC5pRmLSWmPU7P/59dK5wJE2VrF bZaxw1gpMBsIM8VZWPDTzq76Eosq/T7o6u1A6uj3G2RG7aBIqm42DZlknY+xdBLa2I n0NLMLH1l/8xfS6YnaYSKNgzFyc+7z3gvxTMOSlBKqqthWxvYMDJ/zUp3V2u4Erx4w Jf+SqTew1nM2vFf1L3dIkPoEem+Lm6CoeRlmBux/C/wUU9wU7O6C8fY+muu1HIYB3p caB4uDRck2oqg== From: Jeff Layton To: Christian Brauner , Phillip Lougher Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 75/92] squashfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:40 -0400 Message-ID: <20230705190309.579783-73-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. Signed-off-by: Jeff Layton --- fs/squashfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/squashfs/inode.c b/fs/squashfs/inode.c index 24463145b351..c6e626b00546 100644 --- a/fs/squashfs/inode.c +++ b/fs/squashfs/inode.c @@ -61,7 +61,7 @@ static int squashfs_new_inode(struct super_block *sb, struct inode *inode, inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); inode->i_atime.tv_sec = inode->i_mtime.tv_sec; - inode->i_ctime.tv_sec = inode->i_mtime.tv_sec; + inode_set_ctime(inode, inode->i_mtime.tv_sec, 0); inode->i_mode = le16_to_cpu(sqsh_ino->mode); inode->i_size = 0; -- 2.41.0