Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3146906rdh; Thu, 28 Sep 2023 04:16:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjBFKDIYyZK0cKiE5lUUEAF8kvcNbpSO+5jMXTDHiPBU6APbJTNM1cbh1uQe9M2TNA21Ap X-Received: by 2002:a67:fc19:0:b0:452:b574:3c9e with SMTP id o25-20020a67fc19000000b00452b5743c9emr719920vsq.6.1695899775605; Thu, 28 Sep 2023 04:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899775; cv=none; d=google.com; s=arc-20160816; b=qdfScB1K8xmpo496MGQy1mqSJyR5QpTIDXmVUHMpk/AeTCnyFSHaGr4VBRQEzKFz7X LmgWlMlXTQ3gVdjZgMeMZ0stOJ/pmbH54fGeUDZCQ/WpMy1GA2LFmG4jxLh6xlgjR78G 6T2JRcKku1ouPD5V21vdJKsBPxMDOiDo+/Zbubb5R67Cg3U1pGpATLgs/IvGkkBqnWvs C6wLEYILPXPH9i5WFmSvm7wockuZjtH5yIUN9w4dGImZ4inSmh0OLcwTsy8BMXoA5H6l lKz9t/UX6bYBCZCbruRGUhrFKQjCA18nL3ilXXMD97jtrAqzME4I8DGcS3uGP/OfAXrz gZPw== 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=FTXRYHGuQdYyRciW5UoOQXIMJb4B3bkpYU7mu01r95k=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=rf5/x7zdYxu9ZVjIZiLz3UsCv573G7AqjrTsNhWGBOTDc8Kt3RqBN38ss+2DPkaAXK FaKfuEbzJ9gh+s9Q48ygnsfh+4O8qt49Krh4DWsfmy1V2JMRYkfXtze3iGMPsIOBBE7K NQoQYqzMiS9qPwJxmh6LDpvkp0NvMVbDS3IX34gp28jQIGrr41kaPVGjcbq0SyEPadYK 6bCeUqifROAjq2hr9U1lKqnqwmzEw1rUZZUxxphBGc0mN2stGshL/xSUUEyQmsPh5bYE lxWCXApWgngBoUjkHc86zHmwcaiGXcIToxjCo6eQZLx/PAe/uPRYKld57wyUAq4vH3UC t2ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GrTVxkom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e62-20020a636941000000b0056533c00e83si17685771pgc.413.2023.09.28.04.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GrTVxkom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 509E080DBE39; Thu, 28 Sep 2023 04:12:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbjI1LJR (ORCPT + 99 others); Thu, 28 Sep 2023 07:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232455AbjI1LIT (ORCPT ); Thu, 28 Sep 2023 07:08:19 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC201FC3; Thu, 28 Sep 2023 04:05:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4384FC433C9; Thu, 28 Sep 2023 11:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899121; bh=8+8AJF3AhKrl93BeuM8E72hFW1YYn21QPzzOHsiMUnM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GrTVxkomxmLgo+dtPFi5YzqlMf7W+QIjQYPYS6norJp1U0ZjX1hpXMEMGU3t56qpP 4n2vmVnzWD5uLmO8zA+rdMpTOe8NsJkFgaSylhwPXV0oGcPP7RL9gmlKuSNI1SqH/m XhmE5NjBoB07BoGDT63+7N9STzkv4IBTFOAubfzLadNMbHDFjXV1Uw85qBka6ZTrMM bRazIX+ZxtrcyG/kyHKUzXK4/s6DleQ6BpXhmyfZz3zrMhzZGlxw5Bcan74BSIPDrs heUhdGvigKuRAPhVhM1WZzry2WJ88a/bJKG1Z3rYYInU/x4yMgYO1AoS5MkZ++CPxA tO2MzhrilBA0Q== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 57/87] fs/openpromfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:06 -0400 Message-ID: <20230928110413.33032-56-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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:12:16 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/openpromfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c index b2457cb97fa0..c4b65a6d41cc 100644 --- a/fs/openpromfs/inode.c +++ b/fs/openpromfs/inode.c @@ -237,7 +237,7 @@ static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry if (IS_ERR(inode)) return ERR_CAST(inode); if (inode->i_state & I_NEW) { - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); ent_oi = OP_I(inode); ent_oi->type = ent_type; ent_oi->u = ent_data; @@ -387,7 +387,7 @@ static int openprom_fill_super(struct super_block *s, struct fs_context *fc) goto out_no_root; } - root_inode->i_mtime = root_inode->i_atime = inode_set_ctime_current(root_inode); + simple_inode_init_ts(root_inode); root_inode->i_op = &openprom_inode_operations; root_inode->i_fop = &openprom_operations; root_inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; -- 2.41.0