Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3167704rdh; Thu, 28 Sep 2023 04:57:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGIPheCjFQpSf/FteyqrOdAx+cDWkYoEwH4zXUtdV8jrjqi+gJ3pVDyH4nRi7f/p2kFYQw X-Received: by 2002:a05:6a21:610:b0:15d:9d8e:ad8b with SMTP id ll16-20020a056a21061000b0015d9d8ead8bmr827894pzb.32.1695902279081; Thu, 28 Sep 2023 04:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695902279; cv=none; d=google.com; s=arc-20160816; b=o0R3vG357BqqLuFy/tQlqlLurRuOcKSDKZIh2T62upbSUQ5Klos41f7VP6Fj7nNN16 RUYFJzndH5jYGv78FdwLp/w/tixnzmF0W4/cTJJA5asTPDqZeWyHcKYCigKI4V4J+MZg fqaKEfCEzHLf8PUx7qMlpmWUSx3w2gK1+Jtf0eIQLKdH8TRCfFyrEMt/iAIqPnPr4O/S gBDcCppnyLbY8r/Lfj1ymYccUHQ5Ohr3qvYjo1KsiD3l74NG5ciOCey3DNx9iePwLPVy zhIBhIG77duSnGc+06Kgk/3g1tEIFhbrtBaXSgBnTTBRPCDlESXozDkIVl2oETnIY1ff yOLQ== 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:to:from :dkim-signature; bh=rAKTGSOxQQJNU7z/ZUyyoGLfYxTvQ4LTQTc8AxnOId0=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=TEihCRX2N7So286UhoT8QhE4slDGwCA9qW/Ou42vImK8ACLKSMlO0Mrncx8sbGdNEc tpOZIdV8rjxJ1P0dYMsmqu39pTYJJtXj4zsFRZxAX21Eu5O7+GjYU034/lHRF+W0nCfH 7Y4A8skD4F0TcHWM+iacrwHMeRjHOq22MwghkCSczj5Nw6SsENO96PRjZFX6FEJKIvnM tbZU7fME0aakhdcgyXWy7tVwZhRsdj9m4nby4kTm4svm4eAUHzkInw9LNoCta8Q7UDep x6jGr/G2GoRq4lMhZiAFyl7S3Xs95RJFPCcwuoYYYe7HcxJc+aU8eiCyzlO4ukixpj5j Cl7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mtj0L/ZJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e17-20020a17090301d100b001bdcd2e1706si3446140plh.196.2023.09.28.04.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:57:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mtj0L/ZJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 76929811299C; Thu, 28 Sep 2023 04:10:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232394AbjI1LKN (ORCPT + 99 others); Thu, 28 Sep 2023 07:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232367AbjI1LJ2 (ORCPT ); Thu, 28 Sep 2023 07:09:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1D8D2695; Thu, 28 Sep 2023 04:05:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51FBBC43395; Thu, 28 Sep 2023 11:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899135; bh=GSs8K8rj3xzkDUaqDpXTyJe0zo505hLTnO0gJr9PIPk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mtj0L/ZJ/qzHWjTrc9MXWSJfQ9JrpD7MdhmTRu0lO/CCc5iGSY5LayaO3flGWTqY/ 2Sba3ihZLTVgQwniR6UcDadWcCUwm0Knx4zMHy7jG/1SI2x/ae/o5itr5/mWFiPxer dC6UKJwyo5EZrDjOWN+oLXuU8YNGCg2Tq6+/cS2t/J8YunoTtNu36i2iUBLsaOVIZV EZS56zJud6xC2eoJ2xmtLlnX6QJ3OJZ0bp076zFHpKAjD0d+dqrzM4EgTrQv31Evr6 mWFGkbz7mGVQwATSHC2/HVaICTDYcLXyh5rFk9kU4BsaqfReJMN4cc2QpDYZmbUDOP pibSUN6122c3g== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 69/87] fs/squashfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:18 -0400 Message-ID: <20230928110413.33032-68-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=-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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:10:50 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/squashfs/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/squashfs/inode.c b/fs/squashfs/inode.c index c6e626b00546..5e3c38eaca2c 100644 --- a/fs/squashfs/inode.c +++ b/fs/squashfs/inode.c @@ -59,9 +59,9 @@ static int squashfs_new_inode(struct super_block *sb, struct inode *inode, i_uid_write(inode, i_uid); i_gid_write(inode, i_gid); 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_set_ctime(inode, inode->i_mtime.tv_sec, 0); + inode_set_mtime(inode, le32_to_cpu(sqsh_ino->mtime), 0); + inode_set_atime(inode, inode_get_mtime(inode).tv_sec, 0); + inode_set_ctime(inode, inode_get_mtime(inode).tv_sec, 0); inode->i_mode = le16_to_cpu(sqsh_ino->mode); inode->i_size = 0; -- 2.41.0