aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 780607716fb2..89d6febebb72 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1341,7 +1341,8 @@ vm_page_cache(vm_page_t m)
int s;
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
- if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy || m->wire_count) {
+ if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy ||
+ m->hold_count || m->wire_count) {
printf("vm_page_cache: attempting to cache busy page\n");
return;
}