diff options
author | ivoras <ivoras@FreeBSD.org> | 2010-07-20 13:59:51 +0000 |
---|---|---|
committer | ivoras <ivoras@FreeBSD.org> | 2010-07-20 13:59:51 +0000 |
commit | d9b793e64da3a4e08cd0014269ed9c012f714857 (patch) | |
tree | 4c006f53bc33461ca7f6cd834ca9fd1c7b3e65f1 /sys/kern/vfs_bio.c | |
parent | fbb4c617bdc01b26e782941a6c5abb5901ab6314 (diff) | |
download | FreeBSD-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.c | 5 |
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 |