aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r--sys/vm/vm_swap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c
index 08825b13a47d..9140c1fb1ea4 100644
--- a/sys/vm/vm_swap.c
+++ b/sys/vm/vm_swap.c
@@ -53,6 +53,7 @@
#include <vm/vm.h>
#include <vm/vm_extern.h>
#include <vm/swap_pager.h>
+#include <vm/vm_zone.h>
/*
* Indirect driver for multi-controller paging.
@@ -173,6 +174,7 @@ swapon(p, uap)
if (error)
return (error);
+ NDFREE(&nd, NDF_ONLY_PNBUF);
vp = nd.ni_vp;
if (!vn_isdisk(vp))