diff options
author | alc <alc@FreeBSD.org> | 2017-09-30 18:32:00 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2017-09-30 18:32:00 +0000 |
commit | b4048d787f3ea816d628265c46b245d20ec6e09c (patch) | |
tree | da1c5d09c3e439a5085e5c5e77a66cfd970a0886 | |
parent | b9579f89ca206abc61984bcf722bb891863150de (diff) | |
download | FreeBSD-src-b4048d787f3ea816d628265c46b245d20ec6e09c.zip FreeBSD-src-b4048d787f3ea816d628265c46b245d20ec6e09c.tar.gz |
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.
-rw-r--r-- | sys/net/bpf_zerocopy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/bpf_zerocopy.c b/sys/net/bpf_zerocopy.c index 5d54f64..1375716 100644 --- a/sys/net/bpf_zerocopy.c +++ b/sys/net/bpf_zerocopy.c @@ -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); } |