diff options
author | alc <alc@FreeBSD.org> | 2017-10-01 16:29:20 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2017-10-01 16:29:20 +0000 |
commit | e5afbd0e3549c2e915fd749e6bafddcf0352f01f (patch) | |
tree | 353dfa38f32b8089f02492802143aff0c8d2993d | |
parent | f06a9a5a8f5dcc0bbf7c6a00fbe76dc108a3661c (diff) | |
download | FreeBSD-src-e5afbd0e3549c2e915fd749e6bafddcf0352f01f.zip FreeBSD-src-e5afbd0e3549c2e915fd749e6bafddcf0352f01f.tar.gz |
MFC r323981
Modernize the use of vm_page_unwire(). Since r288122, vm_page_unwire()
has returned TRUE when the wire count transitions to zero, eliminating
the need for callers to inspect the page's wire count.
-rw-r--r-- | sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c index e325f6e..555677a 100644 --- a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c +++ b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c @@ -379,8 +379,7 @@ static void pagelist_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); } |