Fix the contiguity once more.
This commit is contained in:
parent
c10340d440
commit
4f56243aad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311995
@ -974,7 +974,7 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int count,
|
||||
#ifdef INVARIANTS
|
||||
KASSERT(bp->b_npages <= nitems(bp->b_pages),
|
||||
("%s: buf %p overflowed", __func__, bp));
|
||||
for (int j = 1, prev = 1; j < bp->b_npages; j++) {
|
||||
for (int j = 1, prev = 0; j < bp->b_npages; j++) {
|
||||
if (bp->b_pages[j] == bogus_page)
|
||||
continue;
|
||||
KASSERT(bp->b_pages[j]->pindex - bp->b_pages[prev]->pindex ==
|
||||
|
Loading…
Reference in New Issue
Block a user