Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30333096rwd; Thu, 6 Jul 2023 04:33:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGTeggRDKSjX06N2h+DVK27iBSVwt8BDDnFVuEw+ohuhLeb9JFdOfa1thn3gXw+cQuJWI1 X-Received: by 2002:a05:6a21:3391:b0:12d:10b6:98f9 with SMTP id yy17-20020a056a21339100b0012d10b698f9mr1720184pzb.56.1688643207041; Thu, 06 Jul 2023 04:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688643207; cv=none; d=google.com; s=arc-20160816; b=WxXiErug9kJtk+xgsKj8s9qhaJM0zvgl/vDK0P3Q0dFOqtvZUGAEYBzXvDWD46+/fI MuZZPHisiQTRfC5/MyfK2BqCHaCxbi55AAihXWABRZph6Hxwk/udvR3xYHSxNlEAE0RW II8/EiVafjbZXp1BvyV4oFJWey4RLHU0Q8KPu3TNyWInZpC1yPi0OaReRL3TnM5E1TXh SfyE0jhXLkvJl9IaPUOYMvkMIC7XfcgeD3crEDTMG/GPf4aqZ6ovLrb3ZlS/3c/Q9uOe euhcZQSxSH+jb4wquSp6CLV/58F9C5Ef8CWXb5bLsoRDV+eEUpNIatemtq7KbftOcVSk wJPA== 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=kR3QZLsIPfEtA5uIlB7DuNlqPC9LWmqXsuZ1ZDbfsLQ=; fh=Jl9A9jTSg65R1DNRsjuTH9+/i8MhEpa+uw18g8qbIJ4=; b=o5zA0ZfHfz0dzNLQl/Z4Nf0yymGqL/7V9KIvYM7yln14wQb+57kLDg6vIYkIczLeIZ 26rzP0z4oE1/GvKHrHgDP7ShNYL8onPhCT0ZpRz9WHx5ar7fQU0f5CLcryE8V//3dPdq Bw48mF+YmCgYp4HV2BkmxuspN/BH9KSMAmFaFOGgdOZMnZDIVHG8P9xkQTSjG8Np9jeS jybIlDRjEXrDLVFqm4YkSZlECRNcE62Qe1U5MeRsqQKIXm9Q4Z3jnAucVU6C9TwPhV+/ wocSCcJSh67XLMC++SmVj+B30fe63rUBHhNsMNhBAdN12j7X/6ibWUzNF5DcvUpW5zEe B4AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Zc+jlcwv; 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 o19-20020a056a0015d300b0068259969675si1303140pfu.297.2023.07.06.04.33.14; Thu, 06 Jul 2023 04:33:27 -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=Zc+jlcwv; 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 S232144AbjGFK5n (ORCPT + 99 others); Thu, 6 Jul 2023 06:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232213AbjGFK5T (ORCPT ); Thu, 6 Jul 2023 06:57:19 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7309C171D; Thu, 6 Jul 2023 03:56:36 -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 33D9622198; Thu, 6 Jul 2023 10:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688640995; 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=kR3QZLsIPfEtA5uIlB7DuNlqPC9LWmqXsuZ1ZDbfsLQ=; b=Zc+jlcwveKVLW3kdqnFbznxwbhZPbhvbTvx3b31h9NqPqFTQZn3AB2pYSkjLB60X5cIF3P b49N0uZMFlUcQN0/6W+8gy6y2MPeugrkiwd/OAA5TC2vmTPw1cblRkylEFlHNMhmJBBU5B uxIgqRmRwUP7rQqAygtxtQARQ9X6XcU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688640995; 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=kR3QZLsIPfEtA5uIlB7DuNlqPC9LWmqXsuZ1ZDbfsLQ=; b=1cI8fCn/AEZ4eI6GZatDhnC3NvAqxADANU3KWLfMPnzskQAtpXuPtACrnDzd1kQIs+D4Vn Q4LjNGRzMYXIrjDg== 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 20267138EE; Thu, 6 Jul 2023 10:56:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iSzXB+OdpmT0BQAAMHmgww (envelope-from ); Thu, 06 Jul 2023 10:56:35 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 7C9C4A0707; Thu, 6 Jul 2023 12:56:34 +0200 (CEST) Date: Thu, 6 Jul 2023 12:56:34 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Tyler Hicks , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ecryptfs@vger.kernel.org Subject: Re: [PATCH v2 36/92] ecryptfs: convert to ctime accessor functions Message-ID: <20230706105634.ca5d4dv34z67bld3@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-34-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-34-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 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:01, 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/ecryptfs/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c > index 83274915ba6d..b491bb239c8f 100644 > --- a/fs/ecryptfs/inode.c > +++ b/fs/ecryptfs/inode.c > @@ -148,7 +148,7 @@ static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, > } > fsstack_copy_attr_times(dir, lower_dir); > set_nlink(inode, ecryptfs_inode_to_lower(inode)->i_nlink); > - inode->i_ctime = dir->i_ctime; > + inode_set_ctime_to_ts(inode, inode_get_ctime(dir)); > out_unlock: > dput(lower_dentry); > inode_unlock(lower_dir); > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR