--- src/sys/vm/vm_map.c 2004/05/27 00:38:58 1.28 +++ src/sys/vm/vm_map.c 2004/07/21 01:25:18 1.29 @@ -2201,11 +2201,13 @@ vm_map_clean(vm_map_t map, vm_offset_t s if (object && invalidate && ((object->type == OBJT_VNODE) || (object->type == OBJT_DEVICE))) { + int clean_only = + (object->type == OBJT_DEVICE) ? FALSE : TRUE; vm_object_reference(object); vm_object_page_remove(object, OFF_TO_IDX(offset), OFF_TO_IDX(offset + size + PAGE_MASK), - TRUE); + clean_only); vm_object_deallocate(object); } start += size;