summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_subs.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-03-20 10:07:52 +0000
committerjeff <jeff@FreeBSD.org>2002-03-20 10:07:52 +0000
commit5cc8ffe0d4d9b652c6008e25f3fc1c6a8fd51976 (patch)
tree397a2dd149ec84023ae2f0cdea08eb53dc029e8d /sys/nfsclient/nfs_subs.c
parentd0f60a59c9bb4d69370dd8ce40f1baf9c6f26046 (diff)
downloadFreeBSD-src-5cc8ffe0d4d9b652c6008e25f3fc1c6a8fd51976.zip
FreeBSD-src-5cc8ffe0d4d9b652c6008e25f3fc1c6a8fd51976.tar.gz
Remove references to vm_zone.h and switch over to the new uma API.
Diffstat (limited to 'sys/nfsclient/nfs_subs.c')
-rw-r--r--sys/nfsclient/nfs_subs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index c23ecc5..476fe87 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
#include <vm/vm_object.h>
#include <vm/vm_extern.h>
-#include <vm/vm_zone.h>
+#include <vm/uma.h>
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
@@ -388,7 +388,8 @@ nfs_init(struct vfsconf *vfsp)
{
int i;
- nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
+ nfsmount_zone = uma_zcreate("NFSMOUNT", sizeof(struct nfsmount),
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
rpc_vers = txdr_unsigned(RPC_VER2);
rpc_call = txdr_unsigned(RPC_CALL);
rpc_reply = txdr_unsigned(RPC_REPLY);
OpenPOWER on IntegriCloud