Fix incorrect assertion in vnode_pager_generic_getpages()
Reviewed by: kib, glebius MFC after: 1 week
This commit is contained in:
parent
e5a24fa137
commit
40a5168449
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344561
@ -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));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user