aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/agp/agp_i810.c
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2014-06-16 18:15:27 +0000
committerAttilio Rao <attilio@FreeBSD.org>2014-06-16 18:15:27 +0000
commit3ae10f7477caa7b2b179eea320ad4d78609d59c2 (patch)
tree84adf2de9d1ba827bc45bbdc6f1e76f230319e94 /sys/dev/agp/agp_i810.c
parenta39adbef47240aa6582e5209e151275b1c64cb7b (diff)
downloadsrc-3ae10f7477caa7b2b179eea320ad4d78609d59c2.tar.gz
src-3ae10f7477caa7b2b179eea320ad4d78609d59c2.zip
- Modify vm_page_unwire() and vm_page_enqueue() to directly accept
the queue where to enqueue pages that are going to be unwired. - Add stronger checks to the enqueue/dequeue for the pagequeues when adding and removing pages to them. Of course, for unmanaged pages the queue parameter of vm_page_unwire() will be ignored, just as the active parameter today. This makes adding new pagequeues quicker. This change effectively modifies the KPI. __FreeBSD_version will be, however, bumped just when the full cache of free pages will be evicted. Sponsored by: EMC / Isilon storage division Reviewed by: alc Tested by: pho
Notes
Notes: svn path=/head/; revision=267548
Diffstat (limited to 'sys/dev/agp/agp_i810.c')
-rw-r--r--sys/dev/agp/agp_i810.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c
index 725aa992903f..dbf34e326583 100644
--- a/sys/dev/agp/agp_i810.c
+++ b/sys/dev/agp/agp_i810.c
@@ -2009,7 +2009,7 @@ agp_i810_free_memory(device_t dev, struct agp_memory *mem)
VM_OBJECT_WLOCK(mem->am_obj);
m = vm_page_lookup(mem->am_obj, 0);
vm_page_lock(m);
- vm_page_unwire(m, 0);
+ vm_page_unwire(m, PQ_INACTIVE);
vm_page_unlock(m);
VM_OBJECT_WUNLOCK(mem->am_obj);
} else {