Module Name: src
Committed By: christos
Date: Thu Sep 1 12:15:07 UTC 2011
Modified Files:
src/sys/kern: vfs_mount.c
Log Message:
fix typo.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/kern/vfs_mount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_mount.c
diff -u src/sys/kern/vfs_mount.c:1.7 src/sys/kern/vfs_mount.c:1.8
--- src/sys/kern/vfs_mount.c:1.7 Thu Sep 1 05:04:08 2011
+++ src/sys/kern/vfs_mount.c Thu Sep 1 08:15:07 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_mount.c,v 1.7 2011/09/01 09:04:08 christos Exp $ */
+/* $NetBSD: vfs_mount.c,v 1.8 2011/09/01 12:15:07 christos Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.7 2011/09/01 09:04:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.8 2011/09/01 12:15:07 christos Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -89,6 +89,8 @@
#include <sys/vfs_syscalls.h>
#include <sys/vnode.h>
+#include <uvm/uvm_swap.h>
+
#include <miscfs/genfs/genfs.h>
#include <miscfs/syncfs/syncfs.h>
#include <miscfs/specfs/specdev.h>
@@ -1016,6 +1018,14 @@
return;
}
+#if defined(_KERNEL) && !defined(_RUMPKERNEL)
+ /*
+ * We need to turn off swap first before we unmount
+ * /dev, because otherwise the spec_vnodes are bad.
+ */
+ uvm_swap_shutdown(l);
+#endif
+
/* Unmount file systems. */
vfs_unmountall(l);
}
@@ -1268,7 +1278,7 @@
mutex_enter(&device_lock);
for (vq = specfs_hash[SPECHASH(vp->v_rdev)]; vq != NULL;
vq = vq->v_specnext) {
- if (vq->v_type != vp->type || vq->v_rdev != vp->v_rdev)
+ if (vq->type != vp->type || vq->v_rdev != vp->v_rdev)
continue;
if (vq->v_specmountpoint != NULL) {
error = EBUSY;