PERFORCE change 129431 for review

Kip Macy kmacy at FreeBSD.org
Fri Nov 23 15:23:13 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=129431

Change 129431 by kmacy at kmacy:storage:toestack on 2007/11/23 23:23:09

	add routine to unhold a list of pages

Affected files ...

.. //depot/projects/toestack/sys/vm/vm_fault.c#7 edit

Differences ...

==== //depot/projects/toestack/sys/vm/vm_fault.c#7 (text+ko) ====

@@ -1418,3 +1418,16 @@
 	return (EFAULT);
 }
 
+void
+vm_fault_unhold_pages(vm_page_t *mp, int count)
+{
+
+	KASSERT(count >= 0, ("negative count %d", count));
+	vm_page_lock_queues();
+	while (count--) {
+		vm_page_unhold(*mp);
+		mp++;
+	}
+	vm_page_unlock_queues();
+}
+


More information about the p4-projects mailing list