summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-08-17 00:07:35 +0000
committeralc <alc@FreeBSD.org>1999-08-17 00:07:35 +0000
commit33f15d9b593b0367efcf31b8b6b795c36746c989 (patch)
treeea1a66fd89359105f4065b89c7e769075c39b62d /sys/vm
parent83b4c498f6aa334947182474f560e573aea394f3 (diff)
downloadFreeBSD-src-33f15d9b593b0367efcf31b8b6b795c36746c989.zip
FreeBSD-src-33f15d9b593b0367efcf31b8b6b795c36746c989.tar.gz
vm_pageout_clean:
Remove dead code. Submitted by: dillon
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_pageout.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 90406fa..308cd82 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pageout.c,v 1.143 1999/07/01 13:21:46 peter Exp $
+ * $Id: vm_pageout.c,v 1.144 1999/07/04 00:25:37 mckusick Exp $
*/
/*
@@ -235,16 +235,6 @@ vm_pageout_clean(m)
* check has been moved up a procedural level.
*/
-#if 0
- /*
- * If not OBJT_SWAP, additional memory may be needed to do the pageout.
- * Try to avoid the deadlock.
- */
- if ((object->type == OBJT_DEFAULT) &&
- ((cnt.v_free_count + cnt.v_cache_count) < cnt.v_pageout_free_min))
- return 0;
-#endif
-
/*
* Don't mess with the page if it's busy.
*/
@@ -252,22 +242,6 @@ vm_pageout_clean(m)
((m->busy != 0) || (m->flags & PG_BUSY)))
return 0;
-#if 0
- /*
- * XXX REMOVED XXX. vm_object_collapse() can block, which can
- * change the page state. Calling vm_object_collapse() might also
- * destroy or rename the page because we have not busied it yet!!!
- * So this code segment is removed.
- */
- /*
- * Try collapsing before it's too late. XXX huh? Why are we doing
- * this here?
- */
- if (object->backing_object) {
- vm_object_collapse(object);
- }
-#endif
-
mc[vm_pageout_page_count] = m;
pageout_count = 1;
page_base = vm_pageout_page_count;
OpenPOWER on IntegriCloud