From bfbacbd93f9abb30478bb3bcb36320d5b531c3d9 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 17 Aug 1999 00:07:35 +0000 Subject: [PATCH] vm_pageout_clean: Remove dead code. Submitted by: dillon --- sys/vm/vm_pageout.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 90406fae94c..308cd82d335 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;