Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6021354pxb; Mon, 14 Feb 2022 13:19:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhGcK1i7oBBbb/4rDLRk8qlYz4xxEjRXF7Dbym78PCvZ5ime4aG6uxCt93fejBLniGNrdB X-Received: by 2002:a17:903:1110:: with SMTP id n16mr784368plh.145.1644873553858; Mon, 14 Feb 2022 13:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873553; cv=none; d=google.com; s=arc-20160816; b=NGq2x7uzL98RGwkMAhpsImYFNrvtnjIykIa0no/LTgcRbqvY/PykQl76gZjiP1ew2u KiSvMbaJhUEgB+oyeyPMR+AcqSLZXIoQpzmke2yVf21b0HV7hnveLnQxZbOispJ/NTq1 hVLvebMU4nllOG3qKazseRvyg0BZaG1caLYJrKCeTUt0Anekpo5QlOCvbSm9S/oOOjky v5qc23HV/FKzMFcES+hjEU+muhoNkelLwoEtcjGhyDMTrp+vZ6ltANQkEX5LSx+NUg1p qb2O3Cd+fxb/f0MSTY/dG5uA5Zaz3GsQXzyEwZpNvCM4FUpYE/CdHtMQFfH11+eKIDNI VW4w== 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:subject:cc:to :from:dkim-signature; bh=8nWZG+KsOQmfQ2AY9uc5p/b9jxNyXzzJxQO1lcqvZLo=; b=KrOAwCdFfCiHlk5NoXiTaOXqe+BbtfSt/1TtvEyP0tikx100onyeZuxtqap0xRIL44 JgY5yiU5uwWgspeQ675Ft2edLlwzmt7PVwr8nZT3mqFBYW8PFeNskhG1g+sJxDfsMlyl JlARCLt0gEEFK0h34O4bRo9zQDZQWEPbX7UtWERejbLfYSVbsdc6X+nK6/r1KzaFtxMh Mp/AC5YgD8I6ndPxDNAfHHUeYQxRwa9IR7pU5mFLZW4tewgg/z6afu7X67VBpzi0Mhd2 mV3yavdUPSQ1ewPY0ROJXEovgugjaenREzvoA9U86ri3yoTFiApVpooyCQkBmGB9k8tq HPqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tZ+jRxZL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 137si816308pge.726.2022.02.14.13.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:19:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tZ+jRxZL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE70B1AC035; Mon, 14 Feb 2022 12:38:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344665AbiBNKFe (ORCPT + 99 others); Mon, 14 Feb 2022 05:05:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344984AbiBNKBL (ORCPT ); Mon, 14 Feb 2022 05:01:11 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA436334; Mon, 14 Feb 2022 01:47:25 -0800 (PST) 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 B955861297; Mon, 14 Feb 2022 09:47:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF04C340E9; Mon, 14 Feb 2022 09:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644832044; bh=AQV8mrgAKuiE5XMzDMYmUw+mudw/mnr48yzPFWycoN8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tZ+jRxZLJx2xxhjBOySY7ijVS0Wv38IaXMuWzhUjvqi+4+dqRSJzvgkwggHcs1NsP 1Dz66P/9MNwM556kBtlQJr2V5njcMML1HOQ7ZnVdYWFWHxXadvQuK86d1VgpTdM3Me vBRSJ589zMEwt4A4gJSoAUiwyUkAecN73RYj6ipg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olga Kornievskaia , Anna Schumaker , Sasha Levin Subject: [PATCH 5.15 030/172] NFSv4 expose nfs_parse_server_name function Date: Mon, 14 Feb 2022 10:24:48 +0100 Message-Id: <20220214092507.442518658@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092506.354292783@linuxfoundation.org> References: <20220214092506.354292783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Olga Kornievskaia [ Upstream commit f5b27cc6761e27ee6387a24df1a99ca77b360fea ] Make nfs_parse_server_name available outside of nfs4namespace.c. Signed-off-by: Olga Kornievskaia Signed-off-by: Anna Schumaker Signed-off-by: Sasha Levin --- fs/nfs/nfs4_fs.h | 3 ++- fs/nfs/nfs4namespace.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 1a048ee653a11..0eb8e5d2ec395 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h @@ -281,7 +281,8 @@ struct rpc_clnt *nfs4_negotiate_security(struct rpc_clnt *, struct inode *, int nfs4_submount(struct fs_context *, struct nfs_server *); int nfs4_replace_transport(struct nfs_server *server, const struct nfs4_fs_locations *locations); - +size_t nfs_parse_server_name(char *string, size_t len, struct sockaddr *sa, + size_t salen, struct net *net); /* nfs4proc.c */ extern int nfs4_handle_exception(struct nfs_server *, int, struct nfs4_exception *); extern int nfs4_async_handle_error(struct rpc_task *task, diff --git a/fs/nfs/nfs4namespace.c b/fs/nfs/nfs4namespace.c index 873342308dc0d..f1ed4f60a7f33 100644 --- a/fs/nfs/nfs4namespace.c +++ b/fs/nfs/nfs4namespace.c @@ -164,8 +164,8 @@ static int nfs4_validate_fspath(struct dentry *dentry, return 0; } -static size_t nfs_parse_server_name(char *string, size_t len, - struct sockaddr *sa, size_t salen, struct net *net) +size_t nfs_parse_server_name(char *string, size_t len, struct sockaddr *sa, + size_t salen, struct net *net) { ssize_t ret; -- 2.34.1