Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9640061rwd; Wed, 21 Jun 2023 09:52:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nPovi9JCbIwVpryb/0CFDCHOxuBLSwG1VlnICVyfEuiv1RUv0zjmm0gxmePMmaaiTAWeP X-Received: by 2002:a17:903:22c8:b0:1b6:99a1:177d with SMTP id y8-20020a17090322c800b001b699a1177dmr3383120plg.31.1687366369299; Wed, 21 Jun 2023 09:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687366369; cv=none; d=google.com; s=arc-20160816; b=dEicCh+uYecdFJUufisIfcjOrp3aSGUhVLHXdcHDyvR8Tt8LrEfMaLhNxwvr9Nujln 6orxcug4WHtULmEL1PsVDO+pU6QaWWwWQo45GHPll5IIb/OQxz/AduJEKDMswbmZgMDR gk8T8joQ4MuzppUQAV3RvE/p6Idub445xfN17tXFsPA+g5BqobSNj9nbGDchgJhuS5Rf 6Ll+pXEePv0qmeuXU30qPgczgik9u0xvQSMnG0kk+QlNRSxDwgCwBFKUvBnGsfLmTKlO R5jc6XtVS5HnjILTsodHABbtvlKiCFz3yia/AUxnZ+Vjg/gIJy62JggA9ynvV4KU7EbP UZeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=SW8r+78YHL2HQQT/A92GF4QTN/9RpyRtse9JVJJVsr4=; b=0aD746yZMXYmbRS77A77xBh4VzS03tP6LDIy4NMjlTzL5OIv1ImmQ1ShGYngm4N5KL hELPEO/LlU7V68AOVgSCpSW8moIn5ZruYS+IZd+WT6knos2yln2f8nUG3khHBcdo6Dt+ EQKtcMvcWvKKWMT/FXtoOLGBjipr5Qqa1kvvDcWfNTlqF1EaF4d/lSLwpQWchI5a3H5W L2cU8cMMbxDReWjZLQzojvLCmjBYiyNsj1CXHjturp7WtTIrjsQLI7QxQ/0cKvmyCHzk 3paiR/ZiznombuN2yhQ4zSZuGx2lbAnK7c4a7VPzHB1G2gbC7RTNEPWSLPAfln1PdPtu bwdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KVhYCJZZ; dkim=neutral (no key) header.i=@suse.cz; 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 m14-20020a170902db0e00b001b1be13179csi4482348plx.385.2023.06.21.09.52.36; Wed, 21 Jun 2023 09:52:49 -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=@suse.cz header.s=susede2_rsa header.b=KVhYCJZZ; dkim=neutral (no key) header.i=@suse.cz; 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 S229914AbjFUQoT (ORCPT + 99 others); Wed, 21 Jun 2023 12:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbjFUQnx (ORCPT ); Wed, 21 Jun 2023 12:43:53 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5399619AB; Wed, 21 Jun 2023 09:43:49 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DEA9521F6A; Wed, 21 Jun 2023 16:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1687365827; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SW8r+78YHL2HQQT/A92GF4QTN/9RpyRtse9JVJJVsr4=; b=KVhYCJZZ3Mzn9nHTbc+LDWEW89VaXSt0bSvd/kuuKaH85N8X3N+oZHuzK7pGediSc/IeNW 0D7bOR367bXgqEc6rvwu8uv9jtQGj2/+tsESknVYoSVfXrstNGVQRajPrPJXT+IAzFSaDe 5UJKhvIGQHOhQO54h1hsW1lAaYO/gxo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1687365827; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SW8r+78YHL2HQQT/A92GF4QTN/9RpyRtse9JVJJVsr4=; b=iX9fn4sOORitLAx5Z+Ye3zUVvAvkdD62b53ou8MesfRr3sqK1URmEN+C5MRuigIGvZE6l1 P5ovOrhr/bIIotDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D0ABC133E6; Wed, 21 Jun 2023 16:43:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id AjftMsMok2RaRwAAMHmgww (envelope-from ); Wed, 21 Jun 2023 16:43:47 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 6F138A075D; Wed, 21 Jun 2023 18:43:47 +0200 (CEST) Date: Wed, 21 Jun 2023 18:43:47 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Ian Kent , Al Viro , Jan Kara , autofs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/79] autofs: switch to new ctime accessors Message-ID: <20230621164347.qfzqyxdu6k3t3unc@quack3> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> <20230621144735.55953-12-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230621144735.55953-12-jlayton@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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 Wed 21-06-23 10:45:26, 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 good to me. Feel free to add: Reviewed-by: Jan Kara Honza > --- > 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; > } > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR