summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2010-07-20 13:59:51 +0000
committerivoras <ivoras@FreeBSD.org>2010-07-20 13:59:51 +0000
commitd9b793e64da3a4e08cd0014269ed9c012f714857 (patch)
tree4c006f53bc33461ca7f6cd834ca9fd1c7b3e65f1 /sys/kern/vfs_bio.c
parentfbb4c617bdc01b26e782941a6c5abb5901ab6314 (diff)
downloadFreeBSD-src-d9b793e64da3a4e08cd0014269ed9c012f714857.zip
FreeBSD-src-d9b793e64da3a4e08cd0014269ed9c012f714857.tar.gz
Fix expression style.
Prodded by: jhb
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 35ea932..416b46b 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -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
OpenPOWER on IntegriCloud