Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2007 23:23:12 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 129431 for review
Message-ID:  <200711232323.lANNNCPk039521@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=129431

Change 129431 by kmacy@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();
+}
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711232323.lANNNCPk039521>