In r288122, we changed vm_page_unwire() so that it returns a Boolean

indicating whether the page's wire count transitioned to zero.  Use that
return value in zbuf_page_free() rather than checking the wire count.

MFC after:	1 week
This commit is contained in:
Alan Cox 2017-09-20 04:59:52 +00:00
parent 2582d7a969
commit e9bfbb02c5

View File

@ -114,8 +114,7 @@ zbuf_page_free(vm_page_t pp)
{
vm_page_lock(pp);
vm_page_unwire(pp, PQ_INACTIVE);
if (pp->wire_count == 0 && pp->object == NULL)
if (vm_page_unwire(pp, PQ_INACTIVE) && pp->object == NULL)
vm_page_free(pp);
vm_page_unlock(pp);
}