diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2018-11-29 17:54:03 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2018-11-29 17:54:03 +0000 |
| commit | f140b6f6b217f480440c283784b39dc72c102618 (patch) | |
| tree | 340d2ff23d6fcb1224b35782b85ff7da13782bff /sys | |
| parent | f2464ec60c08799b3f37468dab72fce006b6e8c5 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/vm/vm_page.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 10b6f7b4a916..f5115a578c71 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -355,7 +355,8 @@ vm_page_blacklist_add(vm_paddr_t pa, bool verbose) vm_domain_free_lock(vmd); ret = vm_phys_unfree_page(m); vm_domain_free_unlock(vmd); - if (ret) { + if (ret != 0) { + vm_domain_freecnt_inc(vmd, -1); TAILQ_INSERT_TAIL(&blacklist_head, m, listq); if (verbose) printf("Skipping page with pa 0x%jx\n", (uintmax_t)pa); |
