If the filesystem blocksize is less than the VM page size, use the generic

getpages code.  This happens for filesystems with 4k pages on the alpha since
the normal alpha pagesize is 8k.
This commit is contained in:
Doug Rabson 1998-06-04 17:04:44 +00:00
parent 58b395a905
commit 6589ab80a9

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_readwrite.c 8.11 (Berkeley) 5/8/95
* $Id: ufs_readwrite.c,v 1.47 1998/03/30 09:56:31 phk Exp $
* $Id: ufs_readwrite.c,v 1.49 1998/04/06 18:18:50 peter Exp $
*/
#define BLKSIZE(a, b, c) blksize(a, b, c)
@ -451,6 +451,12 @@ ffs_getpages(ap)
pindex = mreq->pindex;
foff = IDX_TO_OFF(pindex) /* + ap->a_offset should be zero */;
if (bsize < PAGE_SIZE)
return vnode_pager_generic_getpages(ap->a_vp, ap->a_m,
ap->a_count,
ap->a_reqpage);
if (firstindex == 0)
vp->v_lastr = 0;