diff options
author | dg <dg@FreeBSD.org> | 1995-03-10 22:11:50 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-03-10 22:11:50 +0000 |
commit | 251a107ca62e8b2802dda0ea48be3645c2161faf (patch) | |
tree | d981adde897b19140d7c1b2f77fa3827218eb057 /sys/ufs/ffs/ffs_alloc.c | |
parent | b017660c3ee10633cc54da726d1f6911ae346b08 (diff) | |
download | FreeBSD-src-251a107ca62e8b2802dda0ea48be3645c2161faf.zip FreeBSD-src-251a107ca62e8b2802dda0ea48be3645c2161faf.tar.gz |
The threshold for switching from time-space and space-time is too small
when minfree is 5%...so make it stay at space in this case.
Submitted by: Kirk McKusick
Diffstat (limited to 'sys/ufs/ffs/ffs_alloc.c')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 0723bf2..fe07014 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_alloc.c 8.8 (Berkeley) 2/21/94 - * $Id: ffs_alloc.c,v 1.8 1995/02/27 17:43:57 se Exp $ + * $Id: ffs_alloc.c,v 1.9 1995/03/03 22:13:15 davidg Exp $ */ #include <sys/param.h> @@ -243,7 +243,7 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp) * to begin optimizing for time. */ request = nsize; - if (fs->fs_minfree < 5 || + if (fs->fs_minfree <= 5 || fs->fs_cstotal.cs_nffree > fs->fs_dsize * fs->fs_minfree / (2 * 100)) break; |