From patchwork Wed Jun 21 14:45:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13287445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C7ACEB64D7 for ; Wed, 21 Jun 2023 14:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232149AbjFUOr5 (ORCPT ); Wed, 21 Jun 2023 10:47:57 -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 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@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 Reviewed-by: Jan Kara Acked-by: Dennis Dalessandro --- 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;