svn commit: r274652 - head/sys/vm
Gleb Smirnoff
glebius at FreeBSD.org
Tue Nov 18 13:38:08 UTC 2014
Author: glebius
Date: Tue Nov 18 13:38:07 2014
New Revision: 274652
URL: https://svnweb.freebsd.org/changeset/base/274652
Log:
Collapse three contiguous comment blocks into one. Remove historical
note about wrong assumptions 20 years ago. Use proper casing.
Sponsored by: Nginx, Inc.
Modified:
head/sys/vm/vnode_pager.c
Modified: head/sys/vm/vnode_pager.c
==============================================================================
--- head/sys/vm/vnode_pager.c Tue Nov 18 13:05:24 2014 (r274651)
+++ head/sys/vm/vnode_pager.c Tue Nov 18 13:38:07 2014 (r274652)
@@ -727,17 +727,12 @@ vnode_pager_generic_getpages(struct vnod
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) {
More information about the svn-src-all
mailing list