summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-20 02:06:09 +0000
committerdg <dg@FreeBSD.org>1995-03-20 02:06:09 +0000
commit27e7e169044efd07ca45915bead1365376812f4a (patch)
treeec0c29bd55df12f52376e8338c930cc2cbfbb217 /sys/vm/vm_object.c
parentd08293b86bfd6adadb47204e07c3654daf9279be (diff)
downloadFreeBSD-src-27e7e169044efd07ca45915bead1365376812f4a.zip
FreeBSD-src-27e7e169044efd07ca45915bead1365376812f4a.tar.gz
Removed an unnecessary call to vinvalbuf after the page clean.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index de9b90e..bef90fc 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.31 1995/03/12 08:08:06 davidg Exp $
+ * $Id: vm_object.c,v 1.32 1995/03/16 18:17:21 bde Exp $
*/
/*
@@ -432,20 +432,10 @@ vm_object_terminate(object)
* Clean and free the pages, as appropriate. All references to the
* object are gone, so we don't need to lock it.
*/
-
- if (((object->flags & OBJ_INTERNAL) == 0) &&
- object->pager && (object->pager->pg_type != PG_DEVICE)) {
- (void) vm_object_page_clean(object, 0, 0, TRUE, TRUE);
- }
- /*
- * one last time -- get rid of buffers that might have been created
- * for the vm_object_page_clean
- */
if (vp != NULL) {
- vm_object_unlock(object);
- vinvalbuf(vp, 0, NOCRED, NULL, 0, 0);
- vm_object_lock(object);
+ (void) vm_object_page_clean(object, 0, 0, TRUE, TRUE);
}
+
/*
* Now free the pages. For internal objects, this also removes them
* from paging queues.
OpenPOWER on IntegriCloud