diff options
author | phk <phk@FreeBSD.org> | 2003-01-13 21:32:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-13 21:32:16 +0000 |
commit | 12e99581a734f23ce5d5db529aad14d7714f90b9 (patch) | |
tree | cc0c348f6b5a51b0ad6e791c777a6a18343ef0e6 /sys/vm | |
parent | 5d43ae93ae445548587ca967e8e3158efc0e9109 (diff) | |
download | FreeBSD-src-12e99581a734f23ce5d5db529aad14d7714f90b9.zip FreeBSD-src-12e99581a734f23ce5d5db529aad14d7714f90b9.tar.gz |
We can get past here on a normal vnode as well, so use VOP_STRATEGY if so.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vnode_pager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 7fb080e..f061ccb 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -823,7 +823,10 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage) cnt.v_vnodepgsin += count; /* do the input */ - VOP_SPECSTRATEGY(bp->b_vp, bp); + if (dp->v_type == VCHR) + VOP_SPECSTRATEGY(bp->b_vp, bp); + else + VOP_STRATEGY(bp->b_vp, bp); s = splvm(); /* we definitely need to be at splvm here */ |