nfs_pub: move from vfs_subr.c to vfs_export.c

nfs_pub is used only in vfs_export.c.

Reviewed by:	kib, rmacklem
Differential Revision:	https://reviews.freebsd.org/D56777
This commit is contained in:
Ryan Libby
2026-05-04 22:55:11 -07:00
parent 89b97931d6
commit 6f84579ae4
3 changed files with 3 additions and 4 deletions
+3
View File
@@ -62,6 +62,9 @@
#include <rpc/types.h>
#include <rpc/auth.h>
/* Publicly exported FS */
static struct nfs_public nfs_pub;
static MALLOC_DEFINE(M_NETADDR, "export_host", "Export host address structure");
#if defined(INET) || defined(INET6)
-3
View File
@@ -237,9 +237,6 @@ static struct mtx mntid_mtx;
*/
static struct mtx __exclusive_cache_line vnode_list_mtx;
/* Publicly exported FS */
struct nfs_public nfs_pub;
static uma_zone_t buf_trie_zone;
static smr_t buf_trie_smr;
-1
View File
@@ -1071,7 +1071,6 @@ int vfs_report_lockf(struct mount *mp, struct sbuf *sb);
extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
extern struct mtx_padalign mountlist_mtx;
extern struct nfs_public nfs_pub;
extern struct sx vfsconf_sx;
#define vfsconf_lock() sx_xlock(&vfsconf_sx)
#define vfsconf_unlock() sx_xunlock(&vfsconf_sx)