Fix an error in r292373. Use proper count to update "pages in" counter.

Noticed by:	pfg via Coverity
This commit is contained in:
glebius 2016-03-31 21:15:00 +00:00
parent f841a1c4cc
commit 970d563531

View File

@ -5773,7 +5773,7 @@ zfs_getpages(struct vnode *vp, vm_page_t *m, int count, int *rbehind,
off_t startoff, endoff;
int i, error;
vm_pindex_t reqstart, reqend;
int lsize, reqsize, size;
int lsize, size;
object = m[0]->object;
error = 0;
@ -5797,7 +5797,7 @@ zfs_getpages(struct vnode *vp, vm_page_t *m, int count, int *rbehind,
}
PCPU_INC(cnt.v_vnodein);
PCPU_ADD(cnt.v_vnodepgsin, reqsize);
PCPU_ADD(cnt.v_vnodepgsin, count);
lsize = PAGE_SIZE;
if (IDX_TO_OFF(mlast->pindex) + lsize > object->un_pager.vnp.vnp_size)