Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp958895imi; Fri, 22 Jul 2022 13:35:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmn7rpOYerazPVfQAyF6ur2GCllIuM/HPSGMANntzBOnS5yOqKRJfFnw8xNkIbSA1HoA2p X-Received: by 2002:a17:90a:9286:b0:1f1:bf7b:7602 with SMTP id n6-20020a17090a928600b001f1bf7b7602mr19381089pjo.83.1658522115736; Fri, 22 Jul 2022 13:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658522115; cv=none; d=google.com; s=arc-20160816; b=u40FfwyYf+k7Fv6e9aGvT6vCFxrXxp/PFlzAVYzQxiiMoUX2HPBbOLX2cX1oKthO1z A5UJD8x2PvmdB4Fhl/+y5mDiKm1ULwPCjUr8Vu4EwmZ7eDM381KjBBhEp9lk0g0WADiW 9V4tSDltZPrra/gUsw/74IgLre0SFL3rs3lEZH7+c7ItUN5fdSyXeiCEdwy72QSeC21n f638Co8ZiLT9nlTKmK2Tc49S7Tr+BrzNN1rrkitQvc5UKMWGZ54JX1k+IB6RvV8xBr2N NTQsFxv3tKkj86ZxJnDr6fbQZXHFBB9CjfQER6sl71BTImTwxXmwQ8Fh2ZKfa+zb+b6I FOug== 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 :user-agent:references:in-reply-to:message-id:date:to:from:subject; bh=gQcaGBD/9KKX1ejw6YQTVlUbrvF0HvcDS8MEosPzZIo=; b=N6Bo8H4I8HGLtRAgr48oiyfyGwEg9bS3XWd6YzgTZLzXZzFaKAwoebFwzOQbhTEO/y 1hs9E8/EPBn9AYT9L64g1zkzpuCze8+MosPtfX+gScu/DfaN7S3SjmAKfVs9FF9TQf60 Np+APiwHgG/lntpy+379Zj2yO9iCCSniuhI6k2dFcUJEg9cQo4TIW6Tm9/CKnOwdFBMk gEdaVwQ/a2xH5Taaryn1r6PnrdtZ0AHCY6Tq53qwc1dhT6Ux33M9NPmFbGNhVL7UTvwa tE+93W2K2AuavQyN5I2WvnveI2wqm3kDLWztzKSQ8HGlP0YIfL2z3U9uElbQhGoGIRqn vEnQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a625101000000b005280e22a90csi6628809pfb.46.2022.07.22.13.35.00; Fri, 22 Jul 2022 13:35:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236775AbiGVUT0 (ORCPT + 99 others); Fri, 22 Jul 2022 16:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236531AbiGVUTZ (ORCPT ); Fri, 22 Jul 2022 16:19:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206157F50A for ; Fri, 22 Jul 2022 13:19:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BD1E0B82A1E for ; Fri, 22 Jul 2022 20:19:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B85C341C6 for ; Fri, 22 Jul 2022 20:19:22 +0000 (UTC) Subject: [PATCH v1 04/11] NFSD: Make nfs4_put_copy() static From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Fri, 22 Jul 2022 16:19:21 -0400 Message-ID: <165852116144.11403.3030902360061796137.stgit@manet.1015granger.net> In-Reply-To: <165852076926.11403.44005570813790008.stgit@manet.1015granger.net> References: <165852076926.11403.44005570813790008.stgit@manet.1015granger.net> User-Agent: StGit/1.5.dev2+g9ce680a5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 All call sites are in fs/nfsd/nfs4proc.c. Signed-off-by: Chuck Lever --- fs/nfsd/nfs4proc.c | 2 +- fs/nfsd/state.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 0bcfb9afca03..7e41f40829c4 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1285,7 +1285,7 @@ nfsd4_clone(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, return status; } -void nfs4_put_copy(struct nfsd4_copy *copy) +static void nfs4_put_copy(struct nfsd4_copy *copy) { if (!refcount_dec_and_test(©->refcount)) return; diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index f3d6313914ed..ae596dbf8667 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -703,7 +703,6 @@ extern struct nfs4_client_reclaim *nfs4_client_to_reclaim(struct xdr_netobj name extern bool nfs4_has_reclaimed_state(struct xdr_netobj name, struct nfsd_net *nn); void put_nfs4_file(struct nfs4_file *fi); -extern void nfs4_put_copy(struct nfsd4_copy *copy); extern struct nfsd4_copy * find_async_copy(struct nfs4_client *clp, stateid_t *staetid); extern void nfs4_put_cpntf_state(struct nfsd_net *nn,