summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-24 06:21:43 +0000
committerphk <phk@FreeBSD.org>2004-09-24 06:21:43 +0000
commitd04b40f97caa37b7a80209e9ccbda2ada2cb8550 (patch)
treeb4c5bd4d602e0027572b54e225196f01696be30a /sys/kern/vfs_default.c
parentee853f3efd535a8b40d35ea3cca44dbe51ed3256 (diff)
downloadFreeBSD-src-d04b40f97caa37b7a80209e9ccbda2ada2cb8550.zip
FreeBSD-src-d04b40f97caa37b7a80209e9ccbda2ada2cb8550.tar.gz
use vn_isdisk() to see if vnode is a disk.
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index 5812a03..a173a63 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -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 (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
OpenPOWER on IntegriCloud