diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-11-18 13:38:07 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-11-18 13:38:07 +0000 |
commit | e122dfc1ceb3ff4056870fbecd525ce4f61a0d64 (patch) | |
tree | e08179684094e2e013088f46b16684ec98154730 /sys/vm/vnode_pager.c | |
parent | e93af0f1b93536d44ff7616d1feda3457affd648 (diff) |
Collapse three contiguous comment blocks into one. Remove historical
note about wrong assumptions 20 years ago. Use proper casing.
Sponsored by: Nginx, Inc.
Notes
Notes:
svn path=/head/; revision=274652
Diffstat (limited to 'sys/vm/vnode_pager.c')
-rw-r--r-- | sys/vm/vnode_pager.c | 11 |
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) { |