Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 13:38:08 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274652 - head/sys/vm
Message-ID:  <201411181338.sAIDc8uP051819@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411181338.sAIDc8uP051819>