1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

use vn_isdisk() to see if vnode is a disk.

This commit is contained in:
Poul-Henning Kamp 2004-09-24 06:21:43 +00:00
parent 6e8d420249
commit 233b81be1c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135710

View File

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