diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index d45cd2e5d149..7bb60a590813 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.18 (Berkeley) 5/26/95 - * $Id: ffs_alloc.c,v 1.34 1997/08/04 07:30:43 phk Exp $ + * $Id: ffs_alloc.c,v 1.35 1997/09/02 20:06:44 bde Exp $ */ #include "opt_quota.h" @@ -117,7 +117,7 @@ ffs_alloc(ip, lbn, bpref, size, cred, bnp) #endif /* DIAGNOSTIC */ if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) goto nospace; - if (cred->cr_uid != 0 && freespace(fs, fs->fs_minfree) <= 0) + if (cred->cr_uid != 0 && freespace(fs, fs->fs_minfree) - size < 0) goto nospace; #ifdef QUOTA error = chkdq(ip, (long)btodb(size), cred, 0);