aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vnode_pager.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vnode_pager.c')
-rw-r--r--sys/vm/vnode_pager.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index 050f1b0a8196..5936d384233e 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -727,17 +727,12 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int bytecount,
return VM_PAGER_BAD;
bsize = vp->v_mount->mnt_stat.f_iosize;
-
- /* get the UNDERLYING device for the file with VOP_BMAP() */
-
- /*
- * originally, we did not check for an error return value -- assuming
- * an fs always has a bmap entry point -- that assumption is wrong!!!
- */
foff = IDX_TO_OFF(m[reqpage]->pindex);
/*
- * if we can't bmap, use old VOP code
+ * Get the underlying device blocks for the file with VOP_BMAP().
+ * If the file system doesn't support VOP_BMAP, use old way of
+ * getting pages via VOP_READ.
*/
error = VOP_BMAP(vp, foff / bsize, &bo, &reqblock, NULL, NULL);
if (error == EOPNOTSUPP) {