Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3147562rdh; Thu, 28 Sep 2023 04:17:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgiG6oA4etbVjWXwaxfcruHicKgMO7fhgRnFZGPu4fZtKPG9N/bKyqZdX5alGQFkB7PH5f X-Received: by 2002:a17:90b:1bc2:b0:274:1bb1:415a with SMTP id oa2-20020a17090b1bc200b002741bb1415amr705646pjb.41.1695899846207; Thu, 28 Sep 2023 04:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899846; cv=none; d=google.com; s=arc-20160816; b=zTn7UEm9ypH5x3Kq6UMyYyFjqE3MKdTZ2HiSJV88YoHSuWTBNAQU1YblxU2QknKd1L 8w+PsUT5cgbkd7bho7OCnQbfgxSdzgH/8+oRPsOiw5s6F0Qy0M1IESm4FOjxcYZNiP/C 5xfkT9A/vQPYgSs2jrMLbrm6Niz6J4/7JKFL0VJEtfBcXA4WzMwkGNRIXGHrytcGThq9 q9Le3dZN9zc+TK0e3He0CZqB8s+KufXJgr4YWRFFFrA9gJFZhIjN8TcvIqG/+4taUGy8 pxRFVrS97VPlgKL2CTPlt1MrWkk7/CTGv1OayLUQiTNz34WVaVWI8D0unCSW29Auwv81 KGyA== 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=Xp5GHXPL4fR7ban1uaf3HoKnur+curdH5Cfbb6/5iVA=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=TVGRcY7s2mHMmlN6WEiCFHWA0LO3fu1naFHNmdgt5YAL2h0hjjJdUcgKvn9ghHAPlA RAGU487V99PYScjiM056MvS0DgxJRSzWG7amNmYLlGcwpC4WU2Lgcu1Ll6LA152FnSnJ l1I88i66/fF6blQSyKZsA7bPYGu17OwJGdJQN7vhYeyb8cItphJ/UyedSxUPnfNJtJ9E ltyHgRSuQsJ2PBexklVYkdeU1CnhaRIwfzkNk68jXSaYpXyfR7cGVlXOkeRGIBD3ldBa 0kN1LeVs/SH2FjvXwn5qQuqM+D5SQhjzVvxNqxOlCY20Zhb1ERP+UtDQ2E4QP72BS2bi Z3kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OuGmLiHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 19-20020a630c53000000b00578b9d1d118si7341151pgm.219.2023.09.28.04.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:17:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OuGmLiHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id B9BB780DD690; Thu, 28 Sep 2023 04:10:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbjI1LJq (ORCPT + 99 others); Thu, 28 Sep 2023 07:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbjI1LIz (ORCPT ); Thu, 28 Sep 2023 07:08:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B554B1FEC; Thu, 28 Sep 2023 04:05:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEC53C433CA; Thu, 28 Sep 2023 11:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899125; bh=xEQsIrRsYPNzXX5r6sRFAGgy+JmdjrVXvNQATA/DNqY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OuGmLiHDoHZKnkQ/MGhUox6yyeHjpJAueaRGVMNjUmeNzxgt3wYDCfeV3+rWt+pML gaffXEhePTlNpBtqiDcKKxZsk54ZZBUF+mfaw8lDsmxXA4MEhkexdV9zVNw7QFApLs FDpiXTQ3rZxxg6xxhYxPENqJg6glkdBnSkl2uGFGVpdYEXZ8FZ0Ov5dKGf/h0xF4W4 +yVGPOHwdskE5mNdyRdOkEdmrLg0C/P0MDOEQcqTs0ZzV8sfFB5JAljqlTSos5jt9h Sm4BXKYnAYAKsavHxxpdcspVmxIZjhtLkpixHHPjWAqOkV6cZJeTmxPh7AxHPHXlrS riD9cRJvcTvZw== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 60/87] fs/proc: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:09 -0400 Message-ID: <20230928110413.33032-59-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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:10:25 -0700 (PDT) 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 ffd54617c354..c69925364090 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1902,7 +1902,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 532dc9d240f7..592ed2516f47 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -660,7 +660,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