svn commit: r330413 - head/sys/vm

Konstantin Belousov kib at FreeBSD.org
Sun Mar 4 21:15:32 UTC 2018


Author: kib
Date: Sun Mar  4 21:15:31 2018
New Revision: 330413
URL: https://svnweb.freebsd.org/changeset/base/330413

Log:
  Remove redundant test from r330410.
  
  If the input slist is non-empty, counter cannot be zero after freeing.
  
  Noted by:	mjg
  MFC after:	2 weeks

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c	Sun Mar  4 21:06:21 2018	(r330412)
+++ head/sys/vm/vm_page.c	Sun Mar  4 21:15:31 2018	(r330413)
@@ -3268,7 +3268,7 @@ vm_page_free_pages_toq(struct spglist *free, bool upda
 
 	vm_page_free_phys_pglist(&pgl);
 
-	if (update_wire_count && count > 0)
+	if (update_wire_count)
 		vm_wire_sub(count);
 }
 


More information about the svn-src-all mailing list