Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp508522imn; Wed, 27 Jul 2022 12:08:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ui/G9ykQIl+G7eEMMGqHwA5HfbvweNcF/pdqGsd/2te9K2YhcSOwk4PCDULe5sms86H58Q X-Received: by 2002:a63:d64e:0:b0:41a:b83d:1b2a with SMTP id d14-20020a63d64e000000b0041ab83d1b2amr18139791pgj.122.1658948926288; Wed, 27 Jul 2022 12:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658948926; cv=none; d=google.com; s=arc-20160816; b=aUnbYr99uTug9WG1ZHgrF0YobMY4Gvd6mFOewxbcU2xm4e2lCqxD9PX9/PBU690X26 PtOEexN5J4LQgacu5R7IEvRC+VSecyLRrnZzd9mHRUQYt9UVlKLBdl9Z0UiYra2HBpve 5MxQo04JDdo51xupSZ6UdOKaCiQjt9++hKPdKbdLwQVkGHQfL57/hgw1OPajl8+pC5pj RNaF7XyQCranigQxZJ9/loVBx2ksvuseXp1j9rNlHx6g3XMh9DHZ8OM+NhaetLxPJErz YSxnlbQSG4K48jyhVHBOWp+tAk7RhiXNe3F3mmKP+LRg4eUhFTCkBlvaNHhYatAiAb8g lCdA== 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=02BceOXIcFGI3ziIUS2ofoUerS+TRwVd+QPvjuyPIkc=; b=SKAyUxv+PiwneIly2ownn8XXgyT94WWXeO10d5kzpogul8qDNCdIc1K1uq+RNGYey1 +BiDrUeMD6CE5600RJVAWFSCU3/Ld9MiaFLRBqMM1FgsHco603g3ygRK7BNS/ddbfwSN lS1viwrNEi/IfxShAnFsQuChDSFqvzPaoCcVgA0TfhDwPOrUYzCGlu+ybvZIZOMhl/Yv L5Ekvg5/82ETrQi8J8lpY8cYRAYg9e1sW4EIogZLv0Tun/s2MdUp2YH1gcosfMZ35Y71 M9gtKbanQz9p4WuDVeBgqEA151rB23Y6Rp9TyMevjM9yPaboyOtU9OkB/fOgD89wtfjd rXMg== 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 p7-20020a170902e74700b0016be70453d8si16449534plf.19.2022.07.27.12.08.30; Wed, 27 Jul 2022 12:08:46 -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 S229628AbiG0THg (ORCPT + 99 others); Wed, 27 Jul 2022 15:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235065AbiG0THM (ORCPT ); Wed, 27 Jul 2022 15:07:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8CC683E0 for ; Wed, 27 Jul 2022 11:40:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AAB8D619D9 for ; Wed, 27 Jul 2022 18:40:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EBC8C433C1 for ; Wed, 27 Jul 2022 18:40:35 +0000 (UTC) Subject: [PATCH v2 06/13] NFSD: Make nfs4_put_copy() static From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Wed, 27 Jul 2022 14:40:35 -0400 Message-ID: <165894723513.11193.126844676545983697.stgit@manet.1015granger.net> In-Reply-To: <165894669884.11193.6386905165076468843.stgit@manet.1015granger.net> References: <165894669884.11193.6386905165076468843.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 Clean up: 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 4feafb903335..9a83d179245e 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,