diff options
| author | Robert Drehmel <robert@FreeBSD.org> | 2002-07-01 14:14:07 +0000 |
|---|---|---|
| committer | Robert Drehmel <robert@FreeBSD.org> | 2002-07-01 14:14:07 +0000 |
| commit | 47e151dd7aaf3a61942e5dbf4b2436e8232b2f54 (patch) | |
| tree | 7a761b8149bb2edb2a6a0d763fec357bfedb1ad2 | |
| parent | 21ee796112a4f0acf94f062c66fdcbb48ac7fa81 (diff) | |
Notes
| -rw-r--r-- | sys/vm/vnode_pager.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 32660d3611538..ec18c0da81f50 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -240,8 +240,11 @@ vnode_pager_haspage(object, pindex, before, after) int numafter; *after *= pagesperblock; numafter = pagesperblock - (poff + 1); - if (IDX_TO_OFF(pindex + numafter) > object->un_pager.vnp.vnp_size) { - numafter = OFF_TO_IDX((object->un_pager.vnp.vnp_size - IDX_TO_OFF(pindex))); + if (IDX_TO_OFF(pindex + numafter) > + object->un_pager.vnp.vnp_size) { + numafter = + OFF_TO_IDX(object->un_pager.vnp.vnp_size) - + pindex; } *after += numafter; } @@ -578,8 +581,8 @@ vnode_pager_input_old(object, m) /* * Local media VFS's that do not implement their own VOP_GETPAGES - * should have their VOP_GETPAGES should call to - * vnode_pager_generic_getpages() to implement the previous behaviour. + * should have their VOP_GETPAGES call to vnode_pager_generic_getpages() + * to implement the previous behaviour. * * All other FS's should use the bypass to get to the local media * backing vp's VOP_GETPAGES. @@ -603,7 +606,6 @@ vnode_pager_getpages(object, m, count, reqpage) return rtval; } - /* * This is now called from local media FS's to operate against their * own vnodes if they fail to implement VOP_GETPAGES. |
