Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17026204rwd; Mon, 26 Jun 2023 19:34:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6u+h/I4fBZdmE0kg2HYB5pAXeXXgLCYDG//tO3PDi5OgzB21/qEQR/TX3Ioeh78J+n50Oi X-Received: by 2002:a17:907:1c06:b0:992:e1:93c with SMTP id nc6-20020a1709071c0600b0099200e1093cmr1281335ejc.37.1687833277942; Mon, 26 Jun 2023 19:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687833277; cv=none; d=google.com; s=arc-20160816; b=Hwsy1gC1wkpVx1AcY/t/HJEpeF/6J7Jam9NOriK1RcmXXmSwvF/Tbv1XHSVX4HNZNz GpJem8rOd5OQaggfBHfffJ2c+6pK+a9rbNHDJIM9xBNtcWm8yl8v+AYZgiOphZCBktWF FN+SK7dgXfs/C3bfjaZGfRiAgw5A6xbC32euz5BMjzH0mjlkI9BYO45sYRqzh1kkREph xBNgXKm2IRtnC7xwxT3xNM+aaH8Rz4sIF3gJmtUQ4VwzOvDWW1JcM9CO+p4NdYRxkkQt b3c9PBZ7ZrKrM8R9rispVUznwJP8y9fuqftBrcIqE/vRwsDWZ7DK7/UoV6Gxw+re3Db4 oJLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=XVzYIeQy8/TNTff2J5SjjLTTLWxENUsswH08mHorDqY=; fh=iPTRA1n+6iTj6/rTBXfbPXZh2jcZvcy6wqvFnI3f2vU=; b=l4L5oO6fSfSm20NN/YOOx7+NvbwRbh1N/q3yTpbyj1N93qG5WNJf+Xrpqby0y4htba x92tMK8AxGK+wTwj+ByiI/Dezsf6N3qGmRTzG9XcKyTAWtFdf2MTZtb+H1XLa2U/NGeo H6nw8nK5fFGlxgeZ98eHT5npMyjHY0FI8fMLI30Rtatv0h9uOQld1SJIqP1adk2Sm6ui RmPFHTx7NO6InqukueoTEXOQQbEllujjR/eM+c7fAuUIe9l4sazuQaLVUYrYBHZCONGa SwwW5lo6xwgWNBXFmMNsAavQPn1whqC9du3yBrMYB9ztxLVtN1NfXYzod846hM1CCJ02 tH7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=Ja1NYfvm; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YU3sek6C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga11-20020a170906b84b00b009870295ee4fsi3552357ejb.825.2023.06.26.19.34.13; Mon, 26 Jun 2023 19:34:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=Ja1NYfvm; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YU3sek6C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbjF0BtF (ORCPT + 99 others); Mon, 26 Jun 2023 21:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjF0Bst (ORCPT ); Mon, 26 Jun 2023 21:48:49 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEDDE1701; Mon, 26 Jun 2023 18:48:48 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D6E005C01E4; Mon, 26 Jun 2023 21:48:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 26 Jun 2023 21:48:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1687830527; x=1687916927; bh=XVzYIeQy8/TNTff2J5SjjLTTLWxENUsswH0 8mHorDqY=; b=Ja1NYfvmSLrwC83DRWjbIp5XdjAh0n+Q/7S9f7tISKx37mUJ9xJ s4WEUxH+KjToyS4xM4RyJj5+nKI0Vj5bDFZAiiJOMCg3QIgOYwj/Y01tsMBFI7RT PjLMVbvVUs5iwDUN1grMyqv52d2scvTG6HYjNIR2Te3UyOBLl/Pd98VyUErAaP/B IWusewKVMBGGrYtOzdaBdVAKM7W9uNM8QzUHtai3nxXtreUza0xyhwtSskr0JqSv RcIbnE3BGWVoOsIjl1dhRAz6tW34aOR+BpKbNK2j3UF+bXQhBuuZmzclyBskAzdY c8MZaak3o9tiQ+P06VMhVzpjEqme9TThY1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1687830527; x=1687916927; bh=XVzYIeQy8/TNTff2J5SjjLTTLWxENUsswH0 8mHorDqY=; b=YU3sek6CkQ83uDGINE5llUaCUxrtWvJoaSDn6zGhlLNO5L5p+xy V/1iDSfJjJIIuPe8wwXnM5fhIFRz3ZCQf4f1VzL9BoKevx1U1U1VQMZQBAQK54NH QgFcHuDOC+3JEa34saGJAHFo8othDHYAk5bM45elKz0Nh0pSHBa9f9Pg8hYL9Lo7 iMgF7zzS+tQCzuhpJhnCL7YjsDicBO8O5huwynMLNOHJsk01hMfPKTg4214c3MTt LC8C8PxSfmEmyewsRzi/kCx6VuksbSJGQGiO74C5/P5CZr1Czr8bOZpAbmgDHK4r f2f6HvmZFBDc7VtRhr78L21UxaeEM/XOFtw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeehgedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefkrghn ucfmvghnthcuoehrrghvvghnsehthhgvmhgrfidrnhgvtheqnecuggftrfgrthhtvghrnh epuefhueeiieejueevkefgiedtteehgfdutdelfffhleeflefhudeuvdefhfeghfehnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhgrvhgvnh esthhhvghmrgifrdhnvght X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Jun 2023 21:48:44 -0400 (EDT) Message-ID: Date: Tue, 27 Jun 2023 09:48:40 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH 13/79] autofs: switch to new ctime accessors Content-Language: en-US To: Jeff Layton , Christian Brauner Cc: Al Viro , Jan Kara , autofs@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> <20230621144735.55953-12-jlayton@kernel.org> From: Ian Kent In-Reply-To: <20230621144735.55953-12-jlayton@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 21/623 22:45, Jeff Layton wrote: > In later patches, we're going to change how the ctime.tv_nsec field is > utilized. Switch to using accessor functions instead of raw accesses of > inode->i_ctime. > > Signed-off-by: Jeff Layton Looks fine to me. Please feel free to add my Acked-by or even Signed-off-by as you need dictates. Ian > --- > 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 affa70360b1f..47e3054b29dc 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->i_ctime = current_time(inode); > + inode->i_atime = inode->i_mtime = inode_ctime_set_current(inode); > inode->i_ino = get_next_ino(); > > if (S_ISDIR(mode)) { > diff --git a/fs/autofs/root.c b/fs/autofs/root.c > index 93046c9dc461..4c0fc0f8d688 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 = dir->i_ctime = current_time(dir); > + dir->i_mtime = inode_ctime_set_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 = dir->i_ctime = current_time(dir); > + dir->i_mtime = inode_ctime_set_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 = dir->i_ctime = current_time(dir); > + dir->i_mtime = inode_ctime_set_current(dir); > > return 0; > }