Fix incorrect assertion in vnode_pager_generic_getpages()

Reviewed by:	kib, glebius
MFC after:	1 week
This commit is contained in:
Jason A. Harmening 2019-02-26 04:50:46 +00:00
parent e5a24fa137
commit 40a5168449
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344561

View File

@ -793,7 +793,7 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int count,
KASSERT(foff < object->un_pager.vnp.vnp_size,
("%s: page %p offset beyond vp %p size", __func__, m[0], vp));
KASSERT(count <= sizeof(bp->b_pages),
KASSERT(count <= nitems(bp->b_pages),
("%s: requested %d pages", __func__, count));
/*