Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9639979rwd; Wed, 21 Jun 2023 09:52:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6pE1wcaA8iiqgXsw8F2Pyq3GLimhAskY8XmyjIzs8RTxV8pHMaueuUno1yFK9t6FIo1hg1 X-Received: by 2002:a05:6a20:728a:b0:122:e62d:dcf3 with SMTP id o10-20020a056a20728a00b00122e62ddcf3mr3984914pzk.28.1687366365057; Wed, 21 Jun 2023 09:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687366365; cv=none; d=google.com; s=arc-20160816; b=HcYGKWI/ArSDXs1hYUnXlTqcoMUffz7UMYkbK74kkmCxkbztwcBdczbnZPC3y0SiaN XpxUPS8USF3Iswselype1FWCRHuWCzULjVWTpJYGLpvT1dfG3qf/Y4lZj8OUkhWknJx5 jDVnK21EZZSB/X95H57Dz0dghaEnTmTHAGa2L9Xyhy6Y/lGea/l1f6ATYGC1IV5Ft5cv TgvRxsM8K08gubeWHxPWmHbmcTep/dMwibYj1nVjOGjf4bO0poD/ikmc4MU2u/5Uj4BZ O0LNGlOGl51F+q37BTMMxYyqZO4dlwb5ZiK703f2cHkAserOWaWSuC5M2dzX4Nt+Mr39 AH0w== 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=ufxeOgyDiqX74luvUgtKpXgHocEQOiFjyzfmI13gtTQ=; b=KSIqGhM9iHVQpj5VRTem9a8+eIy8kCEoZ8X9NxyOoqGl8bfvUBDQqLSPiYx2dqHEjb 80EJnFr8AuLKBmM9M5v/xjwaDlWF51pjW/AUM8RFMVHdGAIaGsc120ZP7vAYH6bSIBK7 3y5SRYtkf+yY1JaBDTn43mHf1y4tYWMzqCYvWmwfG5KiebAmQcH8S2aX9H815xzqLDYw F6+Epp078/vq/ejSYbhLDQSjM2YO+AmZVbB1vdrmZ/N6wpUaxn86tuZ+LGfYunenpEQq d8vo3gqxHmwggGayFzjvvNUWeNb3pEWqJR2aQZyYYNQhJFXmgVwOxwNHKt2vioSLPMPa R0PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fxh+5t+H; 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 l76-20020a633e4f000000b0053fb768afc8si1005694pga.748.2023.06.21.09.52.33; Wed, 21 Jun 2023 09:52:45 -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=fxh+5t+H; 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 S229908AbjFUQgC (ORCPT + 99 others); Wed, 21 Jun 2023 12:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbjFUQfk (ORCPT ); Wed, 21 Jun 2023 12:35:40 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FE721FDC for ; Wed, 21 Jun 2023 09:35:09 -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 9768D1FF37; Wed, 21 Jun 2023 16:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1687365307; 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=ufxeOgyDiqX74luvUgtKpXgHocEQOiFjyzfmI13gtTQ=; b=fxh+5t+H1P7MZ8v5CpJiyIt6ogVuU2xcpLP8jQFFBjIExUeNWFcdKhhJg1A6KnzBrcz1p/ NDmVazZIcxOUIIiR5iF8aDwsRBZUaB2TmJ1yuvD2IUQtY6gvXQvJHtIvrOvUs4+/J1BC7J KPWm0pXDJN0qb2X9myMQrjC9F2/fIzc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1687365307; 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=ufxeOgyDiqX74luvUgtKpXgHocEQOiFjyzfmI13gtTQ=; b=X2k02qtLX4zTEUX8p8QQeaK6J/WiV1dfgkP6vqArbtxB+soD+5/linUSR7OVzGb9+7RyFx 1G63fAUL8PsChwDA== 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 848D9133E6; Wed, 21 Jun 2023 16:35:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BJ9KILsmk2Q/QwAAMHmgww (envelope-from ); Wed, 21 Jun 2023 16:35:07 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id F4195A075D; Wed, 21 Jun 2023 18:35:06 +0200 (CEST) Date: Wed, 21 Jun 2023 18:35:06 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Greg Kroah-Hartman , Arve =?utf-8?B?SGrDuG5uZXbDpWc=?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Al Viro , Jan Kara , linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/79] binderfs: switch to new ctime accessors Message-ID: <20230621163506.r7wewyfgpbuz45cy@quack3> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> <20230621144735.55953-3-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230621144735.55953-3-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,URIBL_BLOCKED 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 21-06-23 10:45:17, Jeff Layton wrote: > In later patches, we're going to change how the ctime.tv_nsec field is > utilized. Switch to using accessor functions instead of raw accesses of > inode->i_ctime. > > Signed-off-by: Jeff Layton Looks good to me. Feel free to add: Reviewed-by: Jan Kara Honza > --- > drivers/android/binderfs.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c > index 76e7d6676657..b6b1220e1e55 100644 > --- a/drivers/android/binderfs.c > +++ b/drivers/android/binderfs.c > @@ -153,7 +153,7 @@ static int binderfs_binder_device_create(struct inode *ref_inode, > goto err; > > inode->i_ino = minor + INODE_OFFSET; > - inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); > + inode->i_mtime = inode->i_atime = inode_ctime_set_current(inode); > init_special_inode(inode, S_IFCHR | 0600, > MKDEV(MAJOR(binderfs_dev), minor)); > inode->i_fop = &binder_fops; > @@ -432,7 +432,7 @@ static int binderfs_binder_ctl_create(struct super_block *sb) > } > > inode->i_ino = SECOND_INODE; > - inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); > + inode->i_mtime = inode->i_atime = inode_ctime_set_current(inode); > init_special_inode(inode, S_IFCHR | 0600, > MKDEV(MAJOR(binderfs_dev), minor)); > inode->i_fop = &binder_ctl_fops; > @@ -474,7 +474,7 @@ static struct inode *binderfs_make_inode(struct super_block *sb, int mode) > if (ret) { > ret->i_ino = iunique(sb, BINDERFS_MAX_MINOR + INODE_OFFSET); > ret->i_mode = mode; > - ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); > + ret->i_atime = ret->i_mtime = inode_ctime_set_current(ret); > } > return ret; > } > @@ -703,7 +703,7 @@ static int binderfs_fill_super(struct super_block *sb, struct fs_context *fc) > inode->i_ino = FIRST_INODE; > inode->i_fop = &simple_dir_operations; > inode->i_mode = S_IFDIR | 0755; > - inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); > + inode->i_mtime = inode->i_atime = inode_ctime_set_current(inode); > inode->i_op = &binderfs_dir_inode_operations; > set_nlink(inode, 2); > > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR