Use vn_isdisk() to check if vnode is a disk.

(repeat, CVS core dumped on me)
This commit is contained in:
Poul-Henning Kamp 2004-09-24 06:23:31 +00:00
parent 233b81be1c
commit 38f878d739

View File

@ -406,7 +406,7 @@ retry:
if ((error = VOP_GETATTR(vp, &vat, cred, td)) != 0)
goto retn;
object = vnode_pager_alloc(vp, vat.va_size, 0, 0);
} else if (vn_isdisk(vp)) {
} else if (vn_isdisk(vp, NULL)) {
/*
* This simply allocates the biggest object possible
* for a disk vnode. This should be fixed, but doesn't