Fixed an object reference count problem that was caused by a call to

vm_object_lookup() being outside of some parens. The bug was introduced
via some recently added code.

Reviewed by:	John Dyson
This commit is contained in:
David Greenman 1994-10-13 21:01:39 +00:00
parent 6fc4a1ae38
commit 28e12d63f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3567

View File

@ -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.15 1994/10/07 07:23:04 phk Exp $
* $Id: vm_pageout.c,v 1.16 1994/10/09 01:52:15 phk Exp $
*/
/*
@ -517,13 +517,12 @@ redeact:
(cache_size >= vm_desired_cache_size)) {
vm_object_cache_unlock();
if (object != vm_object_lookup(object->pager))
panic("vm_object_deactivate: I'm sooo confused.");
/*
* if there are no resident pages -- get rid of the object
*/
if( object->resident_page_count == 0) {
if (object != vm_object_lookup(object->pager))
panic("vm_object_deactivate: I'm sooo confused.");
pager_cache(object, FALSE);
goto redeact;
} else {