From 12c63a26f1f3f9a0db3e470b2e1a0a64697b439a Mon Sep 17 00:00:00 2001 From: dillon Date: Fri, 26 Oct 2001 16:27:54 +0000 Subject: [PATCH] Move recently added procedure which was incorrectly placed within an #ifdef DDB block. --- sys/vm/vm_object.c | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index b7613ebadd88..128e76799204 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -1631,6 +1631,22 @@ vm_object_coalesce(vm_object_t prev_object, vm_pindex_t prev_pindex, vm_size_t p return (TRUE); } +void +vm_object_set_writeable_dirty(vm_object_t object) +{ + struct vnode *vp; + + vm_object_set_flag(object, OBJ_WRITEABLE|OBJ_MIGHTBEDIRTY); + if (object->type == OBJT_VNODE && + (vp = (struct vnode *)object->handle) != NULL) { + if ((vp->v_flag & VOBJDIRTY) == 0) { + mtx_lock(&vp->v_interlock); + vp->v_flag |= VOBJDIRTY; + mtx_unlock(&vp->v_interlock); + } + } +} + #include "opt_ddb.h" #ifdef DDB #include @@ -1704,23 +1720,6 @@ vm_object_in_map(vm_object_t object) return 0; } -void -vm_object_set_writeable_dirty(vm_object_t object) -{ - struct vnode *vp; - - vm_object_set_flag(object, OBJ_WRITEABLE|OBJ_MIGHTBEDIRTY); - if (object->type == OBJT_VNODE && - (vp = (struct vnode *)object->handle) != NULL) { - if ((vp->v_flag & VOBJDIRTY) == 0) { - mtx_lock(&vp->v_interlock); - vp->v_flag |= VOBJDIRTY; - mtx_unlock(&vp->v_interlock); - } - } -} - - DB_SHOW_COMMAND(vmochk, vm_object_check) { vm_object_t object;