Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29462347rwd; Wed, 5 Jul 2023 12:11:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q3pfeRzh8Xq23/RfUkr2ckjtLrEP0nA34S5YLuoh4nQugIrtwjH9nfm235+lHuLuMu5cA X-Received: by 2002:a05:6808:2188:b0:3a1:ebf6:3937 with SMTP id be8-20020a056808218800b003a1ebf63937mr18611460oib.30.1688584292932; Wed, 05 Jul 2023 12:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584292; cv=none; d=google.com; s=arc-20160816; b=pNsbRDbJ9y8R19sks54RVZZpN8XsUw19F+w+DEe+hdpGmzu4Dys0fehw0zOEv7XBor jWgOS9OhY5+egsbuCt+ixrREuJ8yQhNtRIXRicwo87pq/I60RwyuDn4lvWp78rosDxym 0LzMsKboQgAkuti2PiKt/Z89UZFflJBDxW4hAjjy+NuTHulUi3+6SaRvbWJd/eyUB+iu Tx+t7GZyCDzihIvuiwna4v2awy2Uo3innevaGkI7R4uHSc+9ydY4AuQzde3oioctDkYR dDj8EkQh9NoCMyImOSfsC3fod7yA1cPkX6gxu5MYAwC+2LlSBFmBPZn45uhb3xfujOMN ib3w== 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=hevbwjFoBumEc23O62NG7FeHzp/vinmf6qmlFeMwBXc=; fh=Rof+EjqBGnNRaGNeWabbAJ1iJSOBykSeV3Gy8yySZyo=; b=mPGs/dYPXe7mLCBYfUtlZ2Sz6VGnPYuJ9hKOKNvjYfGNB+dDAPq68SW8x6+KuqgWYR 0m2c3T0EedHSn05G7aRodIAU+bwZDnLxYk6+T+inbiIT7USdmoTQzD0Y1wThX+Ltdww4 GyBILEYlqu71W34EqGVHqvWKvPbM8uyPTBMaHha74Mo4z81PQhnoVEzyxIs27uoyIS9A 7acOCxzHhXii1P143qa9WBssWpdL5o1waaG+cgQRtsgxdVkicHHVpMFbSWCIBLE6cEkF 43o+fASzhR7uMG+jjK3xRpfWvtXx61Sc0OnUXRSBbuN9kxSOIhHosJBzvbQSpAqKew3q 60dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UeAwqR8X; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 u71-20020a63854a000000b0055786245b37si24331269pgd.377.2023.07.05.12.11.17; Wed, 05 Jul 2023 12:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=UeAwqR8X; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 S233683AbjGETLA (ORCPT + 99 others); Wed, 5 Jul 2023 15:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234080AbjGETKY (ORCPT ); Wed, 5 Jul 2023 15:10:24 -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 803A63C29; Wed, 5 Jul 2023 12:05:54 -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 1A5D861716; Wed, 5 Jul 2023 19:05:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D925CC433CA; Wed, 5 Jul 2023 19:05:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583943; bh=PupGEBmpc4BS3GR/o7WIzvxzbsSfu55Z8rACvDIEA1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UeAwqR8Xl0h07N6K15EXbDERNSWmUYaYGEVGFgjnZMtepCmt1llB/o23xcjhlwLas 6CiwqQJJtoCwixWGV/lVcUuZZKO6JsD8SiSt3FCk1RDYxFjY1KFUCBzxplJ4PXtI+x 4/ADpSVzofY0F4F1Q2YdzkkG+4AFvl6W/8UJtqbe9omwrrQ1fV58teVyo6S+1Ndtta cpR+KOH3XFCEY6W2LvMIs1W3/oR8PY2YrCXkn6ZQIysVDp8v74+o5QHGoKYUw9IojB VwDQslscQGW9cYBZbGedv9tH1cMnorngGns+cDo2tXLg4WKBJ1PK3U4rc1mtPRAKWQ aUfgQraSQYuZg== From: Jeff Layton To: Christian Brauner , Trond Myklebust , Anna Schumaker , Chuck Lever , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 88/92] sunrpc: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:53 -0400 Message-ID: <20230705190309.579783-86-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=-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-nfs@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. Signed-off-by: Jeff Layton --- net/sunrpc/rpc_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 0b6034fab9ab..f420d8457345 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -472,7 +472,7 @@ rpc_get_inode(struct super_block *sb, umode_t mode) return NULL; inode->i_ino = get_next_ino(); inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); switch (mode & S_IFMT) { case S_IFDIR: inode->i_fop = &simple_dir_operations; -- 2.41.0