svn commit: r324128 - stable/11/sys/net
Alan Cox
alc at FreeBSD.org
Sat Sep 30 18:32:02 UTC 2017
Author: alc
Date: Sat Sep 30 18:32:00 2017
New Revision: 324128
URL: https://svnweb.freebsd.org/changeset/base/324128
Log:
MFC r323786
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.
Modified:
stable/11/sys/net/bpf_zerocopy.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/net/bpf_zerocopy.c
==============================================================================
--- stable/11/sys/net/bpf_zerocopy.c Sat Sep 30 18:23:45 2017 (r324127)
+++ stable/11/sys/net/bpf_zerocopy.c Sat Sep 30 18:32:00 2017 (r324128)
@@ -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);
}
More information about the svn-src-stable
mailing list