Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30332916rwd; Thu, 6 Jul 2023 04:33:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSakKgOVMMVbBIbUQkite+8icu2eMH7MFgmoDqExnw5td1tlysKfc93CoVXnJEPS3WPTtj X-Received: by 2002:a05:6808:1a99:b0:3a3:7978:32df with SMTP id bm25-20020a0568081a9900b003a3797832dfmr1046985oib.57.1688643196391; Thu, 06 Jul 2023 04:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688643196; cv=none; d=google.com; s=arc-20160816; b=qew/RLvzez8eBUrYApDfVq4/WuwTBL/H6tbiBuZkognI5xXjm0iwIbE1IbwlNHGNEM jdw6a14HBjBBu+9iqVjs254X41828ZVWja0STJ3LnauO4byoA6zbB3s4vctoeP6I5Hsw glqOefpJtqrL8HutlikCF7nG9PjrcbfuuLSrRVf3j0JGNoDem21qgqYxLy3rsthTeDup OWO3rQPZZXt9RTJGV9u0ieuUhQkJfwJ+GKgjUVXXLlGUOse5H/s+ypsGfCNM1hVZ7KJZ rp139l7JV4UPDQkXnCdVAJ1hNWIV7sy9jaaJh4d4E6oeE6R0GxfEid+MTvfXvfjBaJCH gfiA== 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=LLsG/75/097ZB8o5y/KasjY73Q/jRK5JiW6VjniM1Zg=; fh=WUNcTrHIidQbm4jURCEo3b29TUlnA8Q8AFA+kUGE7Ik=; b=BH2mx5YEVYY5V4J56iz92tnIyLOhU6odPRZLX03Y3fOrQyMm9jfO+LF0ztt1mqeFO5 Ju1Aj1TF21BgQs3VfPyu496j6WS8TQJaDzFJ9AiwjV5gT6k7T5jtI6925RwEV3PDHkCZ x+Wq7lI0mQW0L7pu/yhMzTnZBRy3+uCRLzC51R6WA0l1YvHOUgv7DmqYHHN7T3zrsnl3 jji5S/y6FHg3IelJk0AviJ+8Dp8lEE1zp7J/nPDSNSUD8qwPqz4rfjKkgDqYdtWz9e6h sf1aKOYhHw1xInhUzWC4RxUP3atvCrPwuDwPxkj+Qt3w0KrXrhzdarEdCo3/BKrsDXqe uzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=kkh2hnyC; 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 e5-20020a170902f1c500b001b86494d6ccsi1044798plc.265.2023.07.06.04.33.02; Thu, 06 Jul 2023 04:33:16 -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=kkh2hnyC; 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 S232501AbjGFK44 (ORCPT + 99 others); Thu, 6 Jul 2023 06:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbjGFK4b (ORCPT ); Thu, 6 Jul 2023 06:56:31 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C37E91FD7; Thu, 6 Jul 2023 03:55:38 -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 7457E2232F; Thu, 6 Jul 2023 10:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688640937; 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=LLsG/75/097ZB8o5y/KasjY73Q/jRK5JiW6VjniM1Zg=; b=kkh2hnyC7IueEGt/tjZvkn/A4tp1II5B8sUONjIVyoIkMEFwseq1Z6D3x7PnYKG39Row3Y +3vK+xbiQKgeiOOYoi3gdA+GlJhtJ44tDsE50y9tWIAq/T1+9ApYg2uMGuki0vvQgIE7D5 Uoh2FeKWoG0tZPM6zXXFguJ+tTCaFaI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688640937; 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=LLsG/75/097ZB8o5y/KasjY73Q/jRK5JiW6VjniM1Zg=; b=ZZs//ndoHYKd4j1uPcQI4OTk099tO0M7Jz5wjY6bcGuDR3uqmQZUMxjJrz9OXGZORqwYsE loLy6u+dyZ7B+8Cw== 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 64280138EE; Thu, 6 Jul 2023 10:55:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id uGRnGKmdpmRxBQAAMHmgww (envelope-from ); Thu, 06 Jul 2023 10:55:37 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 0D3C5A0707; Thu, 6 Jul 2023 12:55:37 +0200 (CEST) Date: Thu, 6 Jul 2023 12:55:37 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Greg Kroah-Hartman , "Rafael J. Wysocki" , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 34/92] debugfs: convert to ctime accessor functions Message-ID: <20230706105537.hnh62rulfv4fxe5c@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-32-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-32-jlayton@kernel.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE 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 05-07-23 15:00:59, Jeff Layton wrote: > In later patches, we're going to change how the inode's ctime field is > used. Switch to using accessor functions instead of raw accesses of > inode->i_ctime. > > Acked-by: Greg Kroah-Hartman > Signed-off-by: Jeff Layton Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/debugfs/inode.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c > index 3f81f73c241a..83e57e9f9fa0 100644 > --- a/fs/debugfs/inode.c > +++ b/fs/debugfs/inode.c > @@ -72,8 +72,7 @@ static struct inode *debugfs_get_inode(struct super_block *sb) > struct inode *inode = new_inode(sb); > if (inode) { > inode->i_ino = get_next_ino(); > - inode->i_atime = inode->i_mtime = > - inode->i_ctime = current_time(inode); > + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); > } > return inode; > } > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR