Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2017 04:59:52 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323786 - head/sys/net
Message-ID:  <201709200459.v8K4xqKY046737@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Wed Sep 20 04:59:52 2017
New Revision: 323786
URL: https://svnweb.freebsd.org/changeset/base/323786

Log:
  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

Modified:
  head/sys/net/bpf_zerocopy.c

Modified: head/sys/net/bpf_zerocopy.c
==============================================================================
--- head/sys/net/bpf_zerocopy.c	Wed Sep 20 04:19:49 2017	(r323785)
+++ head/sys/net/bpf_zerocopy.c	Wed Sep 20 04:59:52 2017	(r323786)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709200459.v8K4xqKY046737>