Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9515034rwd; Wed, 21 Jun 2023 08:21:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hF2rt4DefVyQiEA5HwmKhuH4Lk6KjZLcTaz/hQDMzWQ0fDMpMil9YsciImwUi14jRTkkG X-Received: by 2002:a17:903:2344:b0:1b5:20d4:c3f1 with SMTP id c4-20020a170903234400b001b520d4c3f1mr12807542plh.37.1687360866693; Wed, 21 Jun 2023 08:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687360866; cv=none; d=google.com; s=arc-20160816; b=LSwUmlEQKIqSpF5/cPv7vD2RKdSs7ZMuUoMzmtEHc2TwG51itdtxgKPZEi0q7WtsHZ bLbaBJNjkskFWZfOqx4M6RRQdrGsvmOB6vy8DmJ7qCE1EfOX4DW0UGvoosIETO8my6XZ HdewYMCt3uEHlI7f04zxMyvsmKSmk05iajfnJHLmFIf02H4pOKOzE5I3phRQPbsuuPdW vaR61KNfmHn0fiT+dmkORBRsfQwyDK1Dw3tS01dTP/rDTitJEVc2O6bvdEoWIsBrbBjq ekhS2xNUb32yH/kO78XFfVO+OmtfR5kBXi/6l8PLF2v0iwHdFONOYBPu6b/UkL9OIL1S 6sAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b/GkEzFcoQwFroERWDSYmBv3G3lv62iAG55kL4sPyYI=; b=HPEtkprhiXgo1tQQvbEKT3ffWRPvsAhK1gLr/qJOBHWi6fpmc3PwwY3POxHn38F63V uuQpk3CPttepfxBRwByqAHnQnmopLFvnxqaGdDUv4y9KyweXzs/KP6OBfJ3ob5+40eU4 eZZaQlx8zWSHuSP93nabY/SzfP8sv9HLTx4eUVzvv48CQsx4PvKIwS/dqqUGlqM4cy6v Dg9O3oElm9xrS7vYHyQibtcXugWDThd8e51OwzKDbN07GP1vABbV94nuXRJ5FynxzfJE SjG9ycX0AvNOryFcYnymsGDelR9dh2N7eMWsUnqgara8xeD3+Qcxx9S2Ob1Bf28xbQjV iZ9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kdwQL++z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a170902e5c200b001ac939babd7si4767286plf.507.2023.06.21.08.20.54; Wed, 21 Jun 2023 08:21:06 -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=@kernel.org header.s=k20201202 header.b=kdwQL++z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231947AbjFUOr4 (ORCPT + 99 others); Wed, 21 Jun 2023 10:47:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231963AbjFUOrt (ORCPT ); Wed, 21 Jun 2023 10:47:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851DD19AA for ; Wed, 21 Jun 2023 07:47:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1CCA86158B for ; Wed, 21 Jun 2023 14:47:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80C7CC433C8; Wed, 21 Jun 2023 14:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358861; bh=+ZbVNnWFJyrnkyx7x/5Q61rWw0/EOzbgoTsZmaMWSrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kdwQL++zke5r0Tkn8M0bI30T5o5R4QI5cpiziRr7IQWMdP1/4cAEvIXkgekYm3QBd SOkh53XgsgFrozB7y1c0+GgLUCbLWCKuAr8dIDZwC8xQqNNhJcymT3Dhp7lOScmZg3 0LpZI25nGxG7UreHahXG49KK4wpOwExNxw5i0OSqsco1t1s5IJ3uevQuLYFAqZ1SHb v3r0KXlzurc8J8mXT+dfCBtL1tYFr9/BT+AKFWhdxjzUMDYRDWUJTS1w/MHYTyUYuX W2bJNm244PhLGaKE19TZEi+gG2wfxf+XHFIDysoYWeeBIukRG36l0E9cpwIMqKzfQv AvMi/JdB3qNUQ== From: Jeff Layton To: Christian Brauner , Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan Cc: Al Viro , Jan Kara , linux-kernel@vger.kernel.org Subject: [PATCH 04/79] binderfs: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:45:17 -0400 Message-ID: <20230621144735.55953-3-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621144735.55953-1-jlayton@kernel.org> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 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 --- 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