Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3147108rdh; Thu, 28 Sep 2023 04:16:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmbz1jcIvl2W5Axdjo8/c9VUweeM82QesHNLYI10cgYas8d+MQqTbHEYxmiLwTCCBZf4/+ X-Received: by 2002:a25:858c:0:b0:d7a:b8e1:eda3 with SMTP id x12-20020a25858c000000b00d7ab8e1eda3mr836490ybk.29.1695899797392; Thu, 28 Sep 2023 04:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899797; cv=none; d=google.com; s=arc-20160816; b=eQUY2EoVbLf7nc9jppjUmbZ+OgLJDW4lCeB7KSjKdbcso9qpyC7Q92RuUWQ9PvGV+L W084rDi30A1jhp03vzGzx2WYzRFPrdpmZQYNfE2nKgurRS+uDMx+ZHXnOVTaVxISiol+ YZOW4gTv0kxg3NWOMvolfLVqSODb29uvS6GBKdQI7tnfLCYdB1TwaF796PCJ9VoDZv+1 fRYSMmrrs3VXXH1tOLYMufOy5F3j1WOs/AFKAyCv6sSSA5i/4q8inUpQE1LMZR2UqrnO /rQsbwCYiXRczO4JxObTcddz4J4IGo+sCqBN16UeSLDAkZZqPuklXI76hfnLiE2qAC9i fYhg== 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=pw8CfLdWM8RSXQJD5vCT7IVRJlEQqqV4W/22WY1iXnc=; fh=8sRj4pXGeWd3I48ZGssU2MRGGxH8f7IpW7BNWZdmlJ0=; b=LPhs2B3fwMMvEkghCU4g6DQp7yGvm+eQROkqNjeI9ZnWV6RJg8qJTF5wO4yuGTp9+u cALgjpizXq6fcxIOmqH0VeCawEiW5lrBfgGJUjIvWtsb6QKcpIklHfnwk1GuIx3uQ22J otAcKLJpNBhUv2RwJm0ok+poQtlAF8RnT3wlFTvC8drtKvvsLQg3xCvzeTx5ZMhnCvDB qsREoK1tZEPPwXhdee11/6xpv4yjNsmqXiyOh0lV2tQSmheBL3uKiukgYG+hVvBgC+Qa 3SasDYRf+DTFxYAv2VhBrdVU4U2O74vc1tdD4TYTRHwRVFm4o9gIBM10cYO5Ro1OJ1bR MF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2+cr7Wd; 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 l9-20020a655609000000b00578faac74a4si18730556pgs.577.2023.09.28.04.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:16:37 -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=b2+cr7Wd; 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 DBEE582F34A6; Thu, 28 Sep 2023 04:05:58 -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 S232083AbjI1LFl (ORCPT + 99 others); Thu, 28 Sep 2023 07:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjI1LEf (ORCPT ); Thu, 28 Sep 2023 07:04:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 648C9191; Thu, 28 Sep 2023 04:04:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8283AC433D9; Thu, 28 Sep 2023 11:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899074; bh=Cd5IZGO0KaRk0XXew6oC3te7WDw6FBiIJ+bgLrWp4AE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b2+cr7Wd8m7KOd+0wU+WrRDz+Vwd6hzfolzLZux2pxW9cFO9Nlz2ViMgqkl/Y326b uN0A7XfZ7tXg/zIjeGrKE7UVWAcUhTff7JRUJdoy6+ytvDcgy1uWsu8xUrHbfnJ4D6 K1QWJ9Py/9J2YPeDnlc+5FYf3dYu+irbG+3bJn8C6yCFXMjl+yq2Epq4EaTfXc2RiT FDSpJG9M34aNJ+tTP6nxCiANIzwFy8aSaLOmsrKNA97fnE1yfPeiUV8k/Gph1BN3fp +dzkRdJeERifA6LMe2YRjdL/uZOFCIGCiihdanrjBYP9inY0mrzJoho+d9kmFB7VSK szNeKCqRJeeNg== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: autofs@vger.kernel.org Subject: [PATCH 19/87] fs/autofs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:28 -0400 Message-ID: <20230928110413.33032-18-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:05:59 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/autofs/inode.c | 2 +- fs/autofs/root.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index 2b49662ed237..9d06aa350c31 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c @@ -370,7 +370,7 @@ struct inode *autofs_get_inode(struct super_block *sb, umode_t mode) inode->i_uid = d_inode(sb->s_root)->i_uid; inode->i_gid = d_inode(sb->s_root)->i_gid; } - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_ino = get_next_ino(); if (S_ISDIR(mode)) { diff --git a/fs/autofs/root.c b/fs/autofs/root.c index 512b9a26c63d..530d18827e35 100644 --- a/fs/autofs/root.c +++ b/fs/autofs/root.c @@ -600,7 +600,7 @@ static int autofs_dir_symlink(struct mnt_idmap *idmap, p_ino = autofs_dentry_ino(dentry->d_parent); p_ino->count++; - dir->i_mtime = inode_set_ctime_current(dir); + inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)); return 0; } @@ -633,7 +633,7 @@ static int autofs_dir_unlink(struct inode *dir, struct dentry *dentry) d_inode(dentry)->i_size = 0; clear_nlink(d_inode(dentry)); - dir->i_mtime = inode_set_ctime_current(dir); + inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)); spin_lock(&sbi->lookup_lock); __autofs_add_expiring(dentry); @@ -749,7 +749,7 @@ static int autofs_dir_mkdir(struct mnt_idmap *idmap, p_ino = autofs_dentry_ino(dentry->d_parent); p_ino->count++; inc_nlink(dir); - dir->i_mtime = inode_set_ctime_current(dir); + inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)); return 0; } -- 2.41.0