summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-08-17 04:02:34 +0000
committeralc <alc@FreeBSD.org>1999-08-17 04:02:34 +0000
commit075745f2e2fb52fde8ec60e7f50fb9fac232769b (patch)
treea5fc4015860f85bfe6e0ecb7123d7262658cb7bd /sys/vm/vm_page.h
parentb22fe64f8ad371d067c1d604563e453b9cbdd67d (diff)
downloadFreeBSD-src-075745f2e2fb52fde8ec60e7f50fb9fac232769b.zip
FreeBSD-src-075745f2e2fb52fde8ec60e7f50fb9fac232769b.tar.gz
Add the (inline) function vm_page_undirty for clearing the dirty bitmask
of a vm_page. Use it. Submitted by: dillon
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 5807674..05323c1 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_page.h,v 1.67 1999/08/15 01:16:53 mjacob Exp $
+ * $Id: vm_page.h,v 1.68 1999/08/15 05:36:43 alc Exp $
*/
/*
@@ -572,6 +572,18 @@ vm_page_dirty(vm_page_t m)
m->dirty = VM_PAGE_BITS_ALL;
}
+/*
+ * vm_page_undirty:
+ *
+ * Set page to not be dirty. Note: does not clear pmap modify bits
+ */
+
+static __inline void
+vm_page_undirty(vm_page_t m)
+{
+ m->dirty = 0;
+}
+
static __inline vm_page_t
vm_page_list_find(int basequeue, int index, boolean_t prefer_zero)
{
OpenPOWER on IntegriCloud