Add missed relpbuf() for a smallfs page-in.

Reported by:	Shawn Webb
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2015-12-27 14:42:39 +00:00
parent 2747eff128
commit ff64a90ed9

View File

@ -806,6 +806,7 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int count,
* than a page size, then use special small filesystem code. * than a page size, then use special small filesystem code.
*/ */
if (pagesperblock == 0) { if (pagesperblock == 0) {
relpbuf(bp, freecnt);
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
PCPU_INC(cnt.v_vnodein); PCPU_INC(cnt.v_vnodein);
PCPU_INC(cnt.v_vnodepgsin); PCPU_INC(cnt.v_vnodepgsin);