Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30611368rwd; Thu, 6 Jul 2023 08:15:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWiY3MFas1NdnEVD4E3r5P+N/0+ryOKUCdXRIB1tdNIOy0ZIYAWgn/AaRa0kGxYvVJVtkR X-Received: by 2002:a17:90b:1e03:b0:262:d9ed:d7ac with SMTP id pg3-20020a17090b1e0300b00262d9edd7acmr1606378pjb.11.1688656544058; Thu, 06 Jul 2023 08:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688656544; cv=none; d=google.com; s=arc-20160816; b=o6qGhEMIw+Zg83hWrPtahlPnch2r0ZvqOHUxEmosxqGwUIp48xtmzd2VQmU2dq7MSP AN31tD7uv2iMty9yqybFPmBFUS6C65AHtu5gkxnZkuyS5N2f+iwnUmp4I3XDhemPPQ4z zyr8+Fiqe9bkzxUt0P0hIL4d3ZlRkGD1r6b5OIg+KgPkDMDXQJXlBZSuWZbIKYY7GhXh BsMmJ4VnQOv9VmZajn5j1rvd9FZ0j/Q7lIQP0zJEMCPR0Cg/udj4zzTjMI+wjx9DiBt8 fNnL8DEbsDcnODpGZkDF8hcrnt5hX72lJW94NYMV2hgx1ltkkcs16x6ST1yFX5to29K6 lO5w== 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=k71VEl92h9wPnVX4HfzsYmDmgtJ9ey/yoxaeqe+wio8=; fh=B9QqLSvM4csqyj1ix2IN8eD3urbRGyoFd1fv3IdKU18=; b=egBH5ntXjTA5806XVush3uk/ILM9Lyd3IjMO4Zr01LEaPf0cwUgKjrzYgkjvU36Nav kxlkWxg8p9a24tpABt1nCW9G7rvQVRli590Y2X6C/jN1mx52/ziW+7wr/WY4JOcdNZHP tIAE7YRJw32tBRfkzms/Gv30HoXb5jU+JTqwpMpRd0QRAvl0MIHkXB8EdolNjsvOLfhf Co2UEZ6ifNupQkdPL+aAwGfxNd9CvxnGLqZY8ojpF+8/2JD61OOxRM8IEnn8C771xpfd GlPox9XUYmktatW3V7sVbxBX6XRSy78c99QyXAOuTAfhE9ZCzEoKqethM7+SH69aqae/ p4UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=VIevfzqn; 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 lw4-20020a17090b180400b0025c1af5672fsi1965952pjb.112.2023.07.06.08.15.31; Thu, 06 Jul 2023 08:15:44 -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=VIevfzqn; 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 S233452AbjGFOvZ (ORCPT + 99 others); Thu, 6 Jul 2023 10:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233536AbjGFOvH (ORCPT ); Thu, 6 Jul 2023 10:51:07 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 338052102; Thu, 6 Jul 2023 07:50:28 -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 E70E71F747; Thu, 6 Jul 2023 14:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688655026; 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=k71VEl92h9wPnVX4HfzsYmDmgtJ9ey/yoxaeqe+wio8=; b=VIevfzqnKBO0G7IEaeCYCww0PuLb40TWdRtsgSi9I2dklSs97TcayZIkR/Z/B7ltLQaPeR hyOgf6k5DTtVMeKTWeKDACefdDdvxLhGc6hBtGsUzgMShMxc/gTKaHH1n1crMjVviLZzl6 f7EA68yoS7CrGtGEI7/J9yHKHn9QkXw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688655026; 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=k71VEl92h9wPnVX4HfzsYmDmgtJ9ey/yoxaeqe+wio8=; b=/DjFQff2DIKqgxw5Yi+GC4ZodetFfoC7Hri/HfmGfaUPbf4RzOYYSNMBHqsHFNQZumA9i6 LzzoIBRDzibSbEBA== 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 D8E33138FC; Thu, 6 Jul 2023 14:50:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7MXvNLLUpmTuAQAAMHmgww (envelope-from ); Thu, 06 Jul 2023 14:50:26 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 712E3A0707; Thu, 6 Jul 2023 16:50:26 +0200 (CEST) Date: Thu, 6 Jul 2023 16:50:26 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Hans de Goede , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 81/92] vboxsf: convert to ctime accessor functions Message-ID: <20230706145026.4uucnmyswq7mmvni@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-79-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-79-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:46, 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/vboxsf/utils.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c > index dd0ae1188e87..576b91d571c5 100644 > --- a/fs/vboxsf/utils.c > +++ b/fs/vboxsf/utils.c > @@ -128,8 +128,8 @@ int vboxsf_init_inode(struct vboxsf_sbi *sbi, struct inode *inode, > > inode->i_atime = ns_to_timespec64( > info->access_time.ns_relative_to_unix_epoch); > - inode->i_ctime = ns_to_timespec64( > - info->change_time.ns_relative_to_unix_epoch); > + inode_set_ctime_to_ts(inode, > + ns_to_timespec64(info->change_time.ns_relative_to_unix_epoch)); > inode->i_mtime = ns_to_timespec64( > info->modification_time.ns_relative_to_unix_epoch); > return 0; > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR