summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-09-05 15:17:34 +0000
committerbde <bde@FreeBSD.org>1998-09-05 15:17:34 +0000
commita84a2dedfcc6ab465d871962744dd4e15b747178 (patch)
treefd2614e3af0b3e347d41f9bed74e16de0a21f0d5 /sys/vm
parent35e5c0c5bcdc2d95fb26d931cc0e1890ab19472d (diff)
downloadFreeBSD-src-a84a2dedfcc6ab465d871962744dd4e15b747178.zip
FreeBSD-src-a84a2dedfcc6ab465d871962744dd4e15b747178.tar.gz
Instantiate `nfs_mount_type' in a standard file so that it is present
when nfs is an LKM. Declare it in a header file. Don't forget to use it in non-Lite2 code. Initialize it to -1 instead of to 0, since 0 will soon be the mount type number for the first vfs loaded. NetBSD uses strcmp() to avoid this ugly global.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vnode_pager.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index ec6f9a8..f795de2 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
- * $Id: vnode_pager.c,v 1.96 1998/08/25 13:47:37 luoqi Exp $
+ * $Id: vnode_pager.c,v 1.97 1998/09/04 08:06:57 dfr Exp $
*/
/*
@@ -603,8 +603,7 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
* blocksize, but it can handle large reads itself.
*/
} else if ((PAGE_SIZE / bsize) > 1 &&
- (vp->v_mount->mnt_stat.f_type != MOUNT_NFS)) {
-
+ (vp->v_mount->mnt_stat.f_type != nfs_mount_type)) {
for (i = 0; i < count; i++) {
if (i != reqpage) {
vnode_pager_freepage(m[i]);
OpenPOWER on IntegriCloud