diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-26 16:27:54 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-26 16:27:54 +0000 |
commit | 12c63a26f1f3f9a0db3e470b2e1a0a64697b439a (patch) | |
tree | 0348732ac820bf7c4a2ed4d67cb6a9fdc0ccfa00 /sys | |
parent | c55c6300c86d58963d5f402d22181ea350d057a7 (diff) | |
download | FreeBSD-src-12c63a26f1f3f9a0db3e470b2e1a0a64697b439a.zip FreeBSD-src-12c63a26f1f3f9a0db3e470b2e1a0a64697b439a.tar.gz |
Move recently added procedure which was incorrectly placed within an
#ifdef DDB block.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_object.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index b7613eb..128e767 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 <sys/kernel.h> @@ -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; |