Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3178748rdh; Thu, 28 Sep 2023 05:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHl+Jmm3dKeTizDQ9sB9NSmoBRNFQ1KJJCrFmWsyvt4t13i19eu9y4s+lWrOlJGe9LdFJmw X-Received: by 2002:a25:d854:0:b0:d0c:9ab2:72d3 with SMTP id p81-20020a25d854000000b00d0c9ab272d3mr829207ybg.14.1695903152768; Thu, 28 Sep 2023 05:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695903152; cv=none; d=google.com; s=arc-20160816; b=vLAHd5tFQXjVA7YJWuQV+8L/3IsTyV4kssbAGjIFB4SDMmnXR8x3TBvZ1Tt5cdMTUe m1F0JB1pR6zk0D5FL+YHz+5uts8KYmLw6gH9GBH3s/SsMHF46f8QPzyUwqg9txdG6IK5 CS5aJeVJlQRDCStWKGhm31wgHHxALX86GzBxchzKTMb6wzvS0mfIBmA7VCUN6N3bntF8 G7+9ZrOcV3mFWd7Jx0e4EQxyke1uSdZqMkhty6v+jm8EML1uKI9ZmuWAZ3CFO9afxjDN m3wt3O1w4QoJq76UnQIRxmHIrZRZt7M2Qjg3GkQATetv/ttj6Dt64dGFC61UzWnYbnR3 CiyQ== 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=H/09miteVAIVpD0b9ASo5qw8fMwjAs8qHDm+sMH9vcc=; fh=saQy1qmSLuCOGrt+QoyBOB3OaXGklLJfNj6dMfZ9i24=; b=sOcRGuezT36j+r1z2oHfhfgkpN9iLAeP2zdinzFT2krejGw3MpQPFoPEZxrKUQ64Et eRmMPsgkqEJQsLqrRnewGvEBcfYiVtNpm+xJa44coPHV5g+nnmO59r7FGlKWdSS66Oyl 3H9fumPT/4pX5uiejsmkHC9jzbWS9WwfNP95ZzKDGgoQckldevf24H7DrSjEeQNclt4V NMyzM818GZQ+71/kmXOMWp9HmXqghIV147hKl9qpdO37HoDRV4dWEHBZ/8GoWXlD5wJ5 fe+IVb3pJpAMFQKA96Cb1AMiohrVxy9BGnt+9cUfRH+6AlafmOUnjhInv1SPTkDB29vm RRFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B+LiYngF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q26-20020a631f5a000000b005644a9be955si18667345pgm.179.2023.09.28.05.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 05:12:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B+LiYngF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 55A6882F4E1A; Thu, 28 Sep 2023 04:06:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232226AbjI1LGU (ORCPT + 99 others); Thu, 28 Sep 2023 07:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbjI1LEt (ORCPT ); Thu, 28 Sep 2023 07:04:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695A3CD9; Thu, 28 Sep 2023 04:04:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C7B7C43391; Thu, 28 Sep 2023 11:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899087; bh=xLy8ovC/T/DJkHAEAuHt2zyXkBkARonBG5h9l4hgO0A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B+LiYngFvmRQJSi8FMS9rA/4kkZ1X9bA5G4LPi7q6jnThxNY8Xq3HC/urRnR2qAiL JHvqriASpJ1H91QoeNbEM1ZaFMQrMunUWdE8MjbtWxamzNeIEE7R8r6HXliwW0NNQB UnQnoyL/b+fRkjeOgV+wOfJKUjXEx+hTD+PXptAQZ5K8x0BFGrs7qurgsxz3yvmMVt GgI2twG3wZUmigYXw/dIaoMnUMGbzqs2ow49shRLU0dwXY56zd3s4XZvC9E/n/hUX5 ifNrA//wb4zsSWj5I6RHkHjqGp/0RRxK0LUdieb4g0/XR8KimcqW4rQPfj5lqKs2fv 5FaZa0ddIgoBQ== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yue Hu , Jeffle Xu , linux-erofs@lists.ozlabs.org Subject: [PATCH 31/87] fs/erofs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:40 -0400 Message-ID: <20230928110413.33032-30-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 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:06:49 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/erofs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c index edc8ec7581b8..b8ad05b4509d 100644 --- a/fs/erofs/inode.c +++ b/fs/erofs/inode.c @@ -175,7 +175,8 @@ static void *erofs_read_inode(struct erofs_buf *buf, vi->chunkbits = sb->s_blocksize_bits + (vi->chunkformat & EROFS_CHUNK_FORMAT_BLKBITS_MASK); } - inode->i_mtime = inode->i_atime = inode_get_ctime(inode); + inode_set_mtime_to_ts(inode, + inode_set_atime_to_ts(inode, inode_get_ctime(inode))); inode->i_flags &= ~S_DAX; if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) && -- 2.41.0