From patchwork Wed Jul 5 19:00:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13302765 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 D22BAEB64DD for ; Wed, 5 Jul 2023 19:04:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233656AbjGETE1 (ORCPT ); Wed, 5 Jul 2023 15:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233491AbjGETDs (ORCPT ); Wed, 5 Jul 2023 15:03:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCFA61BF7; Wed, 5 Jul 2023 12:03:35 -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 5D4C3616FD; Wed, 5 Jul 2023 19:03:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC70CC433C8; Wed, 5 Jul 2023 19:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583814; bh=6A3lu3ahskz2UGdWWxwneKyvoSkhQFQQk7TBbCz+qvE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BCSd+5QKML8sW8rjLkq9XeTy5nXs45Ctu9NoTqobRQRD1OMeaV6Ow2+c2Ak6U/QK7 ffXfwds4368Anu88DDQOkEZgKotsaAxkiGsOHhTxKbOvdAGPDBccaRExq1OW8F0lFp W/E8V2ouLnR0R4qW/3y+3L1Bf/BdMV+0fobr+BmwdlG/3ZCkvGy4UOaQt4ALsWYY2K d52XxXkWGkzp54T9qZu3N/BJ3AZvDlF6B+zXs4D0RguvBzBaBII3+G6QNBVxmbESlW D6RGN1qSDcrMjI+xe9gniJZFuVT0ZVoddq5GP+Qtc4p9901XpHWbmOEk6Sa0Fqyz9b eDwxtj1HjVUHA== From: Jeff Layton To: Christian Brauner , Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH v2 18/92] infiniband: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:00:43 -0400 Message-ID: <20230705190309.579783-16-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705190309.579783-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-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 inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Reviewed-by: Jan Kara Acked-by: Dennis Dalessandro Signed-off-by: Jeff Layton --- drivers/infiniband/hw/qib/qib_fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index a973905afd13..ed7d4b02f45a 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c @@ -64,9 +64,8 @@ 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_atime = inode_set_ctime_current(inode); inode->i_mtime = inode->i_atime; - inode->i_ctime = inode->i_atime; inode->i_private = data; if (S_ISDIR(mode)) { inode->i_op = &simple_dir_inode_operations;