Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30553716rwd; Thu, 6 Jul 2023 07:31:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlGagViN381jxV3fovvRxjyB2Zlub+06SKwQyxK/dgBS7hcfGQnSNeQaegWzhDGfBpHTcx0x X-Received: by 2002:a05:6a20:387:b0:12d:53ad:f55a with SMTP id 7-20020a056a20038700b0012d53adf55amr1275585pzt.55.1688653903246; Thu, 06 Jul 2023 07:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688653903; cv=none; d=google.com; s=arc-20160816; b=KjOugxvAXraOLnBKg4hgkpPQOBLXLG+YLKncxOHHauQa83sNC43Z6oAHhd6k0ibF0D 0J0M5HkFvOlXHbW/BzCSH5i/w9335+SkpiuHQCxddSP20vQ5mnnTWwXPIPIk6Pn6g6Ga AfHfaFGgvzrl3xSv/q2WmIIMndntk0ko7INFf9mSurrz9JF2KOAVAx86SKCHUH+lUEvg +1bTpn4nhaP7F+rFtnx/9hN35uaVTeOh8rKdO6FIecr3TOvVvQ2LJqAdvy2J17Bp2oJp hq1a4E1oFNXQoI8f59nMmUIJi2yOdv8rcWQ2Jk4Sm++LBDkA4/lKeMU/g6luPCwFEKO5 aLwA== 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=O1iDt/uWIycvAKaQeNchWQPkl5T17PL5WmqM9o48HqY=; fh=gV9+57YtZieAXZnRukJ+0BOiemj3O5p/k5CdTdrYCJ4=; b=kxdz7zxSZd4fcBN6HJVWzZt2zx7Dbsyv46ttn9QdEijBpEo0CpEsrGWMy/FVwPOjQO TsqfM8slh3GVnSB3o9Ohcgw59WekYM+Nf6rePYDJckTLRVDOdTbSAbdVsMfCOajrBX1X MRLxTBtF/V2nedIxsHD97VvqhGoCQKe2qpuzE5IDUUwhe+UmPu6LXuGndg+OHnIG6ogV c80lj27kqS3KIdgcfIXqLpE8gqSsKIcezsaIhsqEUbwcRMJ6Y9L18fHrYmDD1076cipX gYyC37L68MyLW9nRj876PDm5/iMkJEOpfHOsvmDQfIWAKKlMeobwSnajbo4yHMtzKEhe Ta/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=oqgYnuJE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 eh12-20020a056a00808c00b00680252dda3csi1542985pfb.87.2023.07.06.07.31.04; Thu, 06 Jul 2023 07:31:43 -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=oqgYnuJE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S232757AbjGFOBL (ORCPT + 99 others); Thu, 6 Jul 2023 10:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232773AbjGFOBI (ORCPT ); Thu, 6 Jul 2023 10:01:08 -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 B4CA61BF4; Thu, 6 Jul 2023 07:01:06 -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 735FC221B7; Thu, 6 Jul 2023 14:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688652065; 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=O1iDt/uWIycvAKaQeNchWQPkl5T17PL5WmqM9o48HqY=; b=oqgYnuJEJqxeXYFYxOQj5vWN/rcu6SEiEVHdQatAIyaqiVgP2s0JZqACnzBgAut9TpN9aV Vf63H2SYiD0z/U8z0R9cldTmP1rj4tyWzNMjj/IiHUXbsdE/rsw2CtgRu+1Nu5Oqayb5im TYcRLNI0O8rW+liUrk0MCuQtTlxvJyw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688652065; 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=O1iDt/uWIycvAKaQeNchWQPkl5T17PL5WmqM9o48HqY=; b=NQWWPMByky0aT5I5xHKZFHa85oasW+JUQjcw4DxA9iCNOtpbRIiPcJGocBzJMjkUfSeMec 4XUOAuTgwAhD41CA== 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 65B01138EE; Thu, 6 Jul 2023 14:01:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wIvOGCHJpmT1ZwAAMHmgww (envelope-from ); Thu, 06 Jul 2023 14:01:05 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 0943DA0707; Thu, 6 Jul 2023 16:01:05 +0200 (CEST) Date: Thu, 6 Jul 2023 16:01:05 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 70/92] qnx6: convert to ctime accessor functions Message-ID: <20230706140105.m45gy2nrw2uahsoz@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-68-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-68-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:35, 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 Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/qnx6/inode.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c > index 85b2fa3b211c..21f90d519f1a 100644 > --- a/fs/qnx6/inode.c > +++ b/fs/qnx6/inode.c > @@ -562,8 +562,7 @@ struct inode *qnx6_iget(struct super_block *sb, unsigned ino) > inode->i_mtime.tv_nsec = 0; > inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_atime); > inode->i_atime.tv_nsec = 0; > - inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_ctime); > - inode->i_ctime.tv_nsec = 0; > + inode_set_ctime(inode, fs32_to_cpu(sbi, raw_inode->di_ctime), 0); > > /* calc blocks based on 512 byte blocksize */ > inode->i_blocks = (inode->i_size + 511) >> 9; > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR