Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30422967rwd; Thu, 6 Jul 2023 05:52:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3y0E/ZKI1zT2GmkNkBOCwY8Tc2G/Olg5kjy1c3VAPxIimE6Qp63RK4QU1VdqIatmxEs6e X-Received: by 2002:a05:6358:4289:b0:132:d3b1:c34a with SMTP id s9-20020a056358428900b00132d3b1c34amr2011820rwc.7.1688647967123; Thu, 06 Jul 2023 05:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688647967; cv=none; d=google.com; s=arc-20160816; b=FMwzmykjrfnnOiTF0gw401ugs+jfxxyXt3pFoiAi8PyQL4LtTvpYIV5WPto7VgYhie CCmP43nQxO7RVbz1XrTKtTEqT/49PL/PTeU+JkMemfm0NhdkLp8bF4annu1y8XsxE/7y 8H/g+jKoTaIkXah5oi2nA/VT40fSd0o7DHG98ioat2AWGmAmE4DH/a2B5gaWsvr1P3AB 6YlBpK0ypkyDeaW8vtTFZiI/lKdqGejBUU67Whoh9jd8cd1+6t9N8Q8HTPQ1OArtmrsU vX4omc7BRkb1tVI1/9d8EJJiMYTdfxEZX2ZiGd9ktfHgDku89+bDm0w5aaHmAtPairNN a0JA== 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=erRXv7Iz/DE60QLZGLB2gYd8Mg9f7m888fcfhPG9cjA=; fh=gxsX++E94TargbIGm0zrokOoOlKLj8LfzA4Bxyqq7eY=; b=UYmdOn6qnHG+45ygSOZd7PPAbEYW+bpotZ/TxayA77dkZQ9n2Clq3YiJTd+aBNq5tG 16/0GL8mkipoZ/4bJI4QXek3O7LVoCFxnNQRxzd5R4YdF2ujetJgyPnEK1UvlFe2DPOz NuU0SmKPn0lW6SxIcOhhoY+3Y6SIke2DpaiZiTQFSbpJLMg8LEdKvQ0csZ0sLT52P5nz t/B+bmgbtSllHtaGJrRhWouv54fYc0zr6WyNMdCP2ckdXx2p6nW5yuYSd48xei5PL120 LWoaowKpDO3bekVGdlKXKOKGHAjy+VtWt84DbYlrc589t83PBDhXYCYdYluf10u3sjtr AZVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="kyCYw/od"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=PCRMfELn; 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 h9-20020a632109000000b005538432adcasi1406948pgh.57.2023.07.06.05.52.34; Thu, 06 Jul 2023 05:52:47 -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="kyCYw/od"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=PCRMfELn; 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 S231600AbjGFMjY (ORCPT + 99 others); Thu, 6 Jul 2023 08:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjGFMjX (ORCPT ); Thu, 6 Jul 2023 08:39:23 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C513125; Thu, 6 Jul 2023 05:39:23 -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-out2.suse.de (Postfix) with ESMTPS id C9A0C1FE6D; Thu, 6 Jul 2023 12:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688647161; 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=erRXv7Iz/DE60QLZGLB2gYd8Mg9f7m888fcfhPG9cjA=; b=kyCYw/od6qROk/ejpXi8YR49cTYi0oTnQpaXgkDARnwB8WsTjRf0vS1/uk5JA1nCWep/xU NHKuK1uDXPnS7VK8lEDqbWInb6jOsWG/aOYQfwQL/Vvq5ZE+J6g/Zu6NayMIn7sjlxvlCG RI6atCCXcSfkDjEPBW6LAzwBtkc0TH0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688647161; 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=erRXv7Iz/DE60QLZGLB2gYd8Mg9f7m888fcfhPG9cjA=; b=PCRMfELn/YhB7Oe7g5JHcHDw3kov8VoIxxe5WPR7zTDcYosKuUgHQ/NK8w0hiJvH4AuyNk UktQ5sNzm/bZbtDQ== 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 BC480138FC; Thu, 6 Jul 2023 12:39:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id R5jzLfm1pmRuPQAAMHmgww (envelope-from ); Thu, 06 Jul 2023 12:39:21 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 4F352A0707; Thu, 6 Jul 2023 14:39:21 +0200 (CEST) Date: Thu, 6 Jul 2023 14:39:21 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Jan Kara , Al Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 53/92] isofs: convert to ctime accessor functions Message-ID: <20230706123921.z4ckgxviewefzvqq@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-51-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-51-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:01:18, 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. > > Signed-off-by: Jeff Layton > --- > fs/isofs/inode.c | 8 ++++---- > fs/isofs/rock.c | 16 +++++++--------- > 2 files changed, 11 insertions(+), 13 deletions(-) > > diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c > index df9d70588b60..98a78200cff1 100644 > --- a/fs/isofs/inode.c > +++ b/fs/isofs/inode.c > @@ -1424,11 +1424,11 @@ static int isofs_read_inode(struct inode *inode, int relocated) > #endif > > inode->i_mtime.tv_sec = > - inode->i_atime.tv_sec = > - inode->i_ctime.tv_sec = iso_date(de->date, high_sierra); > + inode->i_atime.tv_sec = inode_set_ctime(inode, > + iso_date(de->date, high_sierra), > + 0).tv_sec; > inode->i_mtime.tv_nsec = > - inode->i_atime.tv_nsec = > - inode->i_ctime.tv_nsec = 0; > + inode->i_atime.tv_nsec = 0; This would be IMHO more readable as: inode->i_mtime = inode->i_atime = inode_set_ctime(inode, iso_date(de->date, high_sierra), 0); Otherwise the patch looks good. Honza -- Jan Kara SUSE Labs, CR