Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2010 13:59:51 +0000 (UTC)
From:      Ivan Voras <ivoras@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210295 - head/sys/kern
Message-ID:  <201007201359.o6KDxptc013557@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ivoras
Date: Tue Jul 20 13:59:51 2010
New Revision: 210295
URL: http://svn.freebsd.org/changeset/base/210295

Log:
  Fix expression style.
  
  Prodded by: jhb

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Tue Jul 20 12:36:36 2010	(r210294)
+++ head/sys/kern/vfs_bio.c	Tue Jul 20 13:59:51 2010	(r210295)
@@ -621,9 +621,8 @@ bufinit(void)
 	lobufspace = hibufspace - MAXBSIZE;
 
 	lorunningspace = 512 * 1024;
-	hirunningspace = lmin(roundup(hibufspace/64, MAXBSIZE), 16*1024*1024);
-	if (hirunningspace < 1024 * 1024)
-		hirunningspace = 1024 * 1024;
+	hirunningspace = lmax(lmin(roundup(hibufspace / 64, MAXBSIZE),
+	    16 * 1024 * 1024), 1024 * 1024);
 
 /*
  * Limit the amount of malloc memory since it is wired permanently into



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007201359.o6KDxptc013557>