Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29490367rwd; Wed, 5 Jul 2023 12:38:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+rw8fsyIaH82zJfeoibMrRYf6Pkd5roK896c05FxHDOSUIjRo/GTEHuk/LNEDzgh4le33 X-Received: by 2002:a05:6a21:32a0:b0:12b:1686:3012 with SMTP id yt32-20020a056a2132a000b0012b16863012mr16535219pzb.3.1688585905628; Wed, 05 Jul 2023 12:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688585905; cv=none; d=google.com; s=arc-20160816; b=sbIEHoH01kBZpNpb6QXkYADpgYEs7qgmhvqKjVtk5rtayB/7Y3+rdDFLaotgjfcrqp iK6eKAeG+MYha20GK0ZMMwchsLrCngGCJVsa1bmOIz55pIFeOd+zdurs9YBBAD/H8hyS bTiMrCJgliIHPHK/319OAsXRNAalyf1rTC5F5H9aAxyVDya6N4Yeb8FvRfTQU5wt80oF ZyjxfSAjZBgiF4SqWb8zbYCMQcLvtYeHZzFDs11T0429ovhKWPjzJj2mSl/gonNv9prP KK4fKSu5WpliXVtzg9LOLqvPGe+uCE/HdOUrW7E09eEsEszUWCfvtRknZNUZLSwvYy4t qEBg== 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=m1EEMWGyOkW3j6xe+8UnUfKYxlJK6WG+CYJRxUeIsQs=; fh=9odmT5xVWaZfJb+g0nDSE9jHohQqt2aA3Br7D+6/b3M=; b=qw7N8WTTelsBYLNoJDRwudRJqJM/XhJCIcvYmoh0LTJ9xu0jl4QHoehUsYCgIffXaw 1jU1AKH3hPs+qD30u/N8jRrNfYjKKwPmInAknQPyFzoJSkU/NScFB0yTVa/m9Sqwe/LR Xn3X4dC+BFXJUBRGsa+5QMcMdQj3h4jLqkLjNQpTb80ljlFYgy4mFL86hqsAPSWuJjno 5tksNaamcEucJn601+VnLE24Dy6TCuS64X8tcvQgbpo3b+OGWtNL8nNSrkq/83z6M5FP qOoureKY5HT2d2T+5PgGTAqeoUhI/sdsiOImxH18J3DFeKCvY83nRs3f7M0iPsS/qx9Y LbCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BCSd+5QK; 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 x184-20020a6386c1000000b0054fd504e80asi6658325pgd.542.2023.07.05.12.38.13; Wed, 05 Jul 2023 12:38:25 -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=BCSd+5QK; 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 S233678AbjGETEb (ORCPT + 99 others); Wed, 5 Jul 2023 15:04:31 -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 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 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; -- 2.41.0