Fix an inverted condition introduced in r353539.

This would have most likely resulted in read errors causing page leaks.

Submitted by:	jeff
This commit is contained in:
Mark Johnston 2019-12-06 23:49:37 +00:00
parent eee07d30a0
commit bf10551606

View file

@ -550,7 +550,7 @@ mappedread_sf(vnode_t *vp, int nbytes, uio_t *uio)
vm_page_unlock(pp);
}
vm_page_sunbusy(pp);
if (error != 0 && !vm_page_wired(pp) == 0 &&
if (error != 0 && !vm_page_wired(pp) &&
pp->valid == 0 && vm_page_tryxbusy(pp))
vm_page_free(pp);
} else {