Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9515999rwd; Wed, 21 Jun 2023 08:21:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ54LcmFTCfSHxQHrIwyyWnvoUsX8K9pG7tyNJf+j7qgJZHy2rsWU6faU1Bseh3d1FFoK2fZ X-Received: by 2002:a05:6a00:32cd:b0:668:7235:e760 with SMTP id cl13-20020a056a0032cd00b006687235e760mr13762329pfb.2.1687360909462; Wed, 21 Jun 2023 08:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687360909; cv=none; d=google.com; s=arc-20160816; b=MpjBxkjXt55cPDi6yEVPKamRZr5zC3V1GrlwWeek5fCnR2L7pCaqSSjQqoXOs0QH1Y EmpLlywuL9NwD5ZaXCfcTMCLJBLCe0/yGZRkS9FPyPSW9yaYjjKSEhl4uLGV+wG0ZVSg iXrzgm6I7r7dDWSRU5WPi4IT2poDlV5zlKtFFW60qtb256lUukA5wvchcv9XEleQ76m7 OclxXw9B961rcaQPmDjhaM+MFAvgrNQaEiPrthAUtsykZS51SFxBr5ASj6QqUXaZMYLH PTslpYt1qwtdyTnsnx7OOis5bo8na8qQCByE9AJdFf4nMujeiKOLy93DhSxCm+c2VMNg NRCw== 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=ChZJ8B8mHFhLUr90zUJ0FKgQMq8lUZNTPPHp5jYNvvo=; b=sc/v+TD1MJuDVQO70wQt6ieoatf2KMYsL0J6BBT9tpl38trgawreOfQLYKWBFHhVdw 9KrospyX9OAeXxgSedd4NSgqjyg1GufliE4nro4I5ndTHpDen0B4OPmfytjUz267/nra 4OL6rSfC6Vq+rRDG5a5xnkUgHdxWauuaN94ghVbMq+f9rUU5alfRPMm3ue93w/JHaUuU 8s9OGHTFZlQupzfQQaz01uiL1nLmzQgX+2gk2tknzJOgnMPU+rZLNCTL8AVZzEt35vza mV59uFHxlaWsIeiC9N7ZRKx7OFa5U/wampnkgT4yOEw/uL4fwHs/cgvhneMtsY7ZTEUc CZaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d46xo6y5; 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 p188-20020a625bc5000000b0066957b1c0a0si3158686pfb.288.2023.06.21.08.21.34; Wed, 21 Jun 2023 08:21:49 -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=d46xo6y5; 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 S231963AbjFUOr6 (ORCPT + 99 others); Wed, 21 Jun 2023 10:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjFUOrz (ORCPT ); Wed, 21 Jun 2023 10:47:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011EEE7D; Wed, 21 Jun 2023 07:47:43 -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 924EF61596; Wed, 21 Jun 2023 14:47:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B6AEC433C8; Wed, 21 Jun 2023 14:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358863; bh=vRI8BU25UMybNjK9RylAc8XYw1FYSkUTNGSxgGVyJWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d46xo6y5DaQEs5JFdSRiHff6Mo5y6Z5mT1OphxfwCSbnSrJtI76TQEuZ/Q8jKtpDy o0tTD5jOQ0iICSnNGAPobGPlCyNxb+ZyiDmDOgdRV2LDO6srHwuJkCwFn/f2Ppa2nr 3slorsLnW4QY5wE9rRl3qXOfxHr7+FPfm/5skrEqHsjuvIrfFUsJSqYkkScSLvIwQu dnUMoEUIlp1w2564MSmUyCc3MRCLv7b+uP4P9MHIRD5/yPErUFAoiKEGy9dZ2XD1n4 8dQ71TFSr4LWl0R/RJ4GPOlWw5v0E6FL4X1RSUCzAn8dTf6gc2PATCg2pV669E/eiU jnSyooZWhhgrg== From: Jeff Layton To: Christian Brauner , Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky Cc: Al Viro , Jan Kara , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/79] qib_fs: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:45:18 -0400 Message-ID: <20230621144735.55953-4-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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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/infiniband/hw/qib/qib_fs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index a973905afd13..db008f2884e4 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c @@ -64,9 +64,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry, inode->i_uid = GLOBAL_ROOT_UID; inode->i_gid = GLOBAL_ROOT_GID; inode->i_blocks = 0; - inode->i_atime = current_time(inode); - inode->i_mtime = inode->i_atime; - inode->i_ctime = inode->i_atime; + inode->i_atime = inode->i_mtime = inode_ctime_set_current(inode); inode->i_private = data; if (S_ISDIR(mode)) { inode->i_op = &simple_dir_inode_operations; -- 2.41.0