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:
parent
6e8d420249
commit
233b81be1c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135710
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user