Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5977076pxb; Mon, 14 Feb 2022 12:09:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3Xvszrt3sXU3ZaziLh6TVOx5RyeEA8o83yvI9QIsv3NUv0OC9JVmkc0RFxOGXbn9b9/HJ X-Received: by 2002:a17:90b:1d90:: with SMTP id pf16mr301027pjb.245.1644869366025; Mon, 14 Feb 2022 12:09:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644869366; cv=none; d=google.com; s=arc-20160816; b=NomGFacWx3zKGAL0zjOer9Q6YfH5qj4UTawZzmUqmAsVxuCenKM62ClBOCsBDsN91w uF6AapugSXHa12f10SmLm6NJUVfpLxCeFwhd3cxOkjbW8Ubaa/JepEoyrsTtxlnsZ0+U dnPmSzWFh6w9rdl4hCryFs06dhP6MRMW8gX9DRwJwS6nXjEDWqyNgDvhIA//AIBrYYG1 K3zsj/+FZrFrw92kdoi6XFyaBK8KAiqAoxKQ+ujzDumNV7C9Kfks61WDU7y2Ft/FoDwY +9YRJVJwCV+d/9HxzxSWOf6WCv0nicSk/O2894I4IpJRF6AtIZdBFwOuYOkJduC0ezCz yGVg== 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=OyrU7+dQZJsO1eu/OfyCG1KlEam8VHlQqB3Z2niXU+M=; b=IfsnX4K85e63arr9wpasDBYG3SCUyEUjy+kgD56bsleiqfYfXjlGi0F9Rg98zbE8M4 qmQ+ut+T/fDBXg2PSX4FBcBa5Ty1aDBIq0eOn2TDX78bxpL6yqWWllk6S6oi0ubuzX/b PnR5Yetjbzx3CJ3T39EWBhN8tRP3eUejZumd6LXVLqddObOxL1UsmmQKuiPPInaEmoou FFIalfbJMtmNwEL0BEUzf45BDChtx7CkRaYYy/BKemb6fzgB4GzbYro2/2MKwY5xlgPr v1ZC2azKgbVJJ3SKVyT+p7L9r4Qme1c/UDKkSbErR2ioMo3mRClI78MNSsqQTHPv1rc6 qttA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kV3aBEoN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id ml1si12116080pjb.86.2022.02.14.12.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:09:26 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kV3aBEoN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 5A63410780A; Mon, 14 Feb 2022 11:46:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245657AbiBNJuk (ORCPT + 99 others); Mon, 14 Feb 2022 04:50:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245590AbiBNJqB (ORCPT ); Mon, 14 Feb 2022 04:46:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5787179A; Mon, 14 Feb 2022 01:39:12 -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 C7FBE6102D; Mon, 14 Feb 2022 09:39:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA932C340E9; Mon, 14 Feb 2022 09:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831551; bh=l/brSncTN6vdt2U5TbNasSHodgL5NGbj4Cmm4cRhARM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kV3aBEoNiFTuzgQn5wrJh3PzSFSc2QinnfGP2NoOBvyLOUeUmv9gbjQgOstydVuxN DNyw+i9N6YJsAK6Kh2jBzRDApwF2kAJ8DUL4a2tTf4nWh+5H1c7kh/kSU5sbCkRx8C J8Dmhpn+tDt9riA9Q4FyTQ1Za5ENG2dch4T9nWSM= 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.10 019/116] NFSv4 expose nfs_parse_server_name function Date: Mon, 14 Feb 2022 10:25:18 +0100 Message-Id: <20220214092459.342264804@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092458.668376521@linuxfoundation.org> References: <20220214092458.668376521@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 3e344bec3647b..de71cf89a24ee 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