svn commit: r239897 - stable/9/sys/vm

Konstantin Belousov kib at FreeBSD.org
Thu Aug 30 08:37:07 UTC 2012


Author: kib
Date: Thu Aug 30 08:37:06 2012
New Revision: 239897
URL: http://svn.freebsd.org/changeset/base/239897

Log:
  MFC r238180:
  Style.

Modified:
  stable/9/sys/vm/vm_pageout.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/vm/vm_pageout.c
==============================================================================
--- stable/9/sys/vm/vm_pageout.c	Thu Aug 30 08:07:37 2012	(r239896)
+++ stable/9/sys/vm/vm_pageout.c	Thu Aug 30 08:37:06 2012	(r239897)
@@ -836,7 +836,7 @@ rescan0:
 		object = m->object;
 		if (!VM_OBJECT_TRYLOCK(object) &&
 		    (!vm_pageout_fallback_object_lock(m, &next) ||
-			m->hold_count != 0)) {
+		    m->hold_count != 0)) {
 			VM_OBJECT_UNLOCK(object);
 			vm_page_unlock(m);
 			addl_page_shortage++;
@@ -867,8 +867,8 @@ rescan0:
 		 * level VM system not knowing anything about existing 
 		 * references.
 		 */
-		} else if (((m->aflags & PGA_REFERENCED) == 0) &&
-			(actcount = pmap_ts_referenced(m))) {
+		} else if ((m->aflags & PGA_REFERENCED) == 0 &&
+		    (actcount = pmap_ts_referenced(m)) != 0) {
 			vm_page_activate(m);
 			vm_page_unlock(m);
 			m->act_count += actcount + ACT_ADVANCE;


More information about the svn-src-stable-9 mailing list