Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2819544rdb; Wed, 4 Oct 2023 12:23:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfU9MuXh37v8bbDzECC2EA7ATecgI8Ax+9FyQu5GRTq+nriogFo9E/l1jyK3r4u6Kr1fdJ X-Received: by 2002:a05:6358:618c:b0:145:6e16:fa86 with SMTP id w12-20020a056358618c00b001456e16fa86mr3663955rww.22.1696447406781; Wed, 04 Oct 2023 12:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696447406; cv=none; d=google.com; s=arc-20160816; b=WAJQPNBIXydPHIrF2cP9uJwWwU5M6g4CNkqyZvd2k3a/pi6WORKkthNGoRNu2QzuXR rt6Ire+jBtq6x3Ix+sfHHPPh9BEr/a2ybtbaFE37kKpxkEaRo2w06ftsdelimKMOnbXX IzXoAjy1ETORBK8UdwzpKgWlGc2B/imyrX/kNYMGAHGkY7lWP4ev32UzJaOHjFZi0CKU BuneNBVOPwfDXCP9OSTpMb+3ybAeFzN+1KnI1pWjnTDyvBSh52q9Mh/kJQwhHFgIplh/ 4WYHZ/1DGaYltg+RrvjTLWOhEiE2M4dM8xPj3I4vAQKEDfpFN+u5EQENiBf1rl3jJCLV 4kPw== 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=sWn0YYraQHPsuJYGccgoHETYjrgzvPjSdF5R0UakAqo=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=bJdqVYe4BRkWqmlZKRq5eTIspzDGoaF4VS0Zy0/8ZHx9P+D+KtR93qbCYclIzCWAXy 02M1ReruUFliNLodLGW97kqMY2Xn6sbTPh5XmzRQ37u3J5BNp72CTRQYaN+8LWS3+7CX hEvCdAJeCagq3vfDVgV0brcs4/2w7tVcLzZBZBL1lCidrkpz0qtKU6dWDCSJkEUOSRie +Lz3BydB8lvfw3CdlwSV/FqDfU87kVBTUZBorKn3nJyMGZfaaXC9lSwK/ZWJYxR4uMz1 0ovgOPdF3wBCIaJ3CBwZJCRrGdewaWiWB1iFKlizgYta+RHrILfjsOxhw7P5maPSMbWR fw2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DDrhnP8p; 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 y13-20020a17090a1f4d00b002792831692csi1967987pjy.58.2023.10.04.12.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:23:26 -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=DDrhnP8p; 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 B58A9827174B; Wed, 4 Oct 2023 12:23:25 -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 S244662AbjJDS7F (ORCPT + 99 others); Wed, 4 Oct 2023 14:59:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244942AbjJDS5D (ORCPT ); Wed, 4 Oct 2023 14:57:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1479B1993; Wed, 4 Oct 2023 11:55:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A0EAC433CC; Wed, 4 Oct 2023 18:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445699; bh=KXyNcOGOWfV88u79lgZecOECi0GoeXjGaQBhXsInjRI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DDrhnP8pW6/uoW4rlk3+xms49TMcPNMaurBMLiWzWXPbenYps9NFrWZWHIxnT42n/ rUhtX0qxs6nmPBb/kKIndzLlrc5kNdNX1wUfU2ul08cONnHImii76FUxwtyG0X367l 3CpSy+eKzsHQBo/1kY0Jk+1O3GxlHLPjXM+HB8+rEvqWjntbsbAjZeEF08af58nXbS 1hgFqn3b6hwxlsPZWhHfnQ5CmADbXhT1lPpOOYI6wxCfZkkJQTNsedjfTn2lf7+KYc AhydzPvXNQtmdkSy/TxfpD62J2BgyMfpG5A4UOeNZrVqIuZ0C9RF8oqYuV+qCALFOi wOOURyu5W05tQ== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 61/89] proc: convert to new timestamp accessors Date: Wed, 4 Oct 2023 14:52:46 -0400 Message-ID: <20231004185347.80880-59-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231004185347.80880-1-jlayton@kernel.org> References: <20231004185221.80802-1-jlayton@kernel.org> <20231004185347.80880-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]); Wed, 04 Oct 2023 12:23:25 -0700 (PDT) Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton --- fs/proc/base.c | 2 +- fs/proc/inode.c | 2 +- fs/proc/proc_sysctl.c | 2 +- fs/proc/self.c | 2 +- fs/proc/thread_self.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index 601329f9629a..86516fbc572b 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1898,7 +1898,7 @@ struct inode *proc_pid_make_inode(struct super_block *sb, ei = PROC_I(inode); inode->i_mode = mode; inode->i_ino = get_next_ino(); - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_op = &proc_def_inode_operations; /* diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 5933c78af6de..b33e490e3fd9 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -657,7 +657,7 @@ struct inode *proc_get_inode(struct super_block *sb, struct proc_dir_entry *de) inode->i_private = de->data; inode->i_ino = de->low_ino; - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); PROC_I(inode)->pde = de; if (is_empty_pde(de)) { make_empty_dir_inode(inode); diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index c88854df0b62..bc9a2db89cfa 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -465,7 +465,7 @@ static struct inode *proc_sys_make_inode(struct super_block *sb, head->count++; spin_unlock(&sysctl_lock); - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_mode = table->mode; if (!S_ISDIR(table->mode)) { inode->i_mode |= S_IFREG; diff --git a/fs/proc/self.c b/fs/proc/self.c index ecc4da8d265e..b46fbfd22681 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c @@ -46,7 +46,7 @@ int proc_setup_self(struct super_block *s) struct inode *inode = new_inode(s); if (inode) { inode->i_ino = self_inum; - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_mode = S_IFLNK | S_IRWXUGO; inode->i_uid = GLOBAL_ROOT_UID; inode->i_gid = GLOBAL_ROOT_GID; diff --git a/fs/proc/thread_self.c b/fs/proc/thread_self.c index 63ac1f93289f..0e5050d6ab64 100644 --- a/fs/proc/thread_self.c +++ b/fs/proc/thread_self.c @@ -46,7 +46,7 @@ int proc_setup_thread_self(struct super_block *s) struct inode *inode = new_inode(s); if (inode) { inode->i_ino = thread_self_inum; - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_mode = S_IFLNK | S_IRWXUGO; inode->i_uid = GLOBAL_ROOT_UID; inode->i_gid = GLOBAL_ROOT_GID; -- 2.41.0