1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36645

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;