Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3179101rdh; Thu, 28 Sep 2023 05:13:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJ7XqTq5iGj+zQA0CyFsOu61bJujhdwrCCYBvGFySejaNmD/2sigX8Jrk9YuWyXvhxPmpQ X-Received: by 2002:a25:d4c5:0:b0:d4e:4103:7807 with SMTP id m188-20020a25d4c5000000b00d4e41037807mr950477ybf.60.1695903185626; Thu, 28 Sep 2023 05:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695903185; cv=none; d=google.com; s=arc-20160816; b=Qu1S8kS9smmPPQgB1zPjEHbRxMJVcbhBLLAKBRMDaF0tytfU9TqvKfHpHJwJZfwGrr lJDeBzcUyvu4gNp0YEgAJhOk7ITBrl6NHZFr3W0U2pEpoBIQ9m5V+Qxqif84FggZHPiG 0cW+vM0MXPpALqJbzN3p4DW47yVPXTMdu1okQ0OV9s/lBCsgzHtSSrOS/wZE/xsWU1zu 5v9YjVj1p6rrZIDoU/i2cx1t8AYwZI4J4lkM0li9fn/4A4cciHQ97Lb3w0JKDDJAMPhL VwT8Xv8MTrvs/2xzL4LU/dhy9ombG++a+fQhATKIxbavFf60L9b1/AmeSUlfmoIMtydf uzyA== 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=0+HmNiK7gV7X96hqfUBxcWoWKRXgNBLisrudLv3C4CY=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=K8uyKjbE7ROW1D8VMMl77iIjEtJ7leGwebC/YyWl6ls0gFMxqpotgI1zsk3l1IevAd WfaF/MciM0nSGZX4eTYh3aqtFwLT5WEOEFkqw8HzY9KgqS6mzDtgovOu0MgwjiMyaWLP Qe484Ike17oqs1groGfY1ih7HK9Sjn+4zIWGOrNFJbpcaob2HKsSMPixueBP8PmVHdFk Yo0XFHEZBZrCXDwIDLUqIqjm84fecRFwbh2ZwwX9PFt2f9MGV+UA5TT6hSD3cegVJwHH epXDeTklzWnJIDcKFgeEsAPghhDA4dkfGsy9CRYtETAGR+nx7zs73Wb0ATkzji6TTk1d s2EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uS/q0iCZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e14-20020a63d94e000000b0057d3b77a9e2si12897123pgj.98.2023.09.28.05.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 05:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uS/q0iCZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 E865382F4E0A; Thu, 28 Sep 2023 04:06:36 -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 S232107AbjI1LGJ (ORCPT + 99 others); Thu, 28 Sep 2023 07:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232120AbjI1LEr (ORCPT ); Thu, 28 Sep 2023 07:04:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15DB3CCA; Thu, 28 Sep 2023 04:04:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 217B6C433CA; Thu, 28 Sep 2023 11:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899084; bh=v9z0/wIA3lMrPUrVgPV8jMRrEFIBVBwkDnpYB974b6U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uS/q0iCZHBe6IGy23Du0wVWD8QQsRkuTG7RxzFktFhu7pgdsbnwuQYvKVarlvP6Ts nMjmSm5UqJFJgoT8y3VPUhcXNWRc2oBK+FIsZmplwzeC7CT9bhts4cqBayR7abovdR c7AbIPtVInwXUk3DS6abCJB0kG3e5ObBy0LITQBc218iMDkucusNYfZFH+4w/vkTju G51nThxSmxgwVJAmFVSRp9TcxYqjOyYYgdwsj630geIfo4Oyzd+DdhQfX+axVp/S3a tiFxBp/eorY+k4XZ6mW9Ba2Mge1b3zeVQ8NiD/v59G3fkivQZ8ya9VeCCrYY9BuOc4 hRdX9y75iKghw== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 28/87] fs/devpts: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:37 -0400 Message-ID: <20230928110413.33032-27-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:37 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/devpts/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 299c295a27a0..c830261aa883 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -338,7 +338,7 @@ static int mknod_ptmx(struct super_block *sb) } inode->i_ino = 2; - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); mode = S_IFCHR|opts->ptmxmode; init_special_inode(inode, mode, MKDEV(TTYAUX_MAJOR, 2)); @@ -451,7 +451,7 @@ devpts_fill_super(struct super_block *s, void *data, int silent) if (!inode) goto fail; inode->i_ino = 1; - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; inode->i_op = &simple_dir_inode_operations; inode->i_fop = &simple_dir_operations; @@ -560,7 +560,7 @@ struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv) inode->i_ino = index + 3; inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)); sprintf(s, "%d", index); -- 2.41.0