summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-08-23 20:29:29 +0000
committeralc <alc@FreeBSD.org>2003-08-23 20:29:29 +0000
commit5b4e7610191dcd9258d5403f43e1cf056c43e37d (patch)
tree679a3f8bb3054114e91f2347ef27594503456e7f /sys/vm/vm_page.c
parentb4e8782978c327a465cb287af7a7715035624c0f (diff)
downloadFreeBSD-src-5b4e7610191dcd9258d5403f43e1cf056c43e37d.zip
FreeBSD-src-5b4e7610191dcd9258d5403f43e1cf056c43e37d.tar.gz
Held pages, just like wired pages, should not be added to the cache queues.
Submitted by: tegge
Diffstat (limited to 'sys/vm/vm_page.c')
-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 7806077..89d6feb 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;
}
OpenPOWER on IntegriCloud