svn commit: r260088 - head/sys/ufs/ffs
Kirk McKusick
mckusick at FreeBSD.org
Mon Dec 30 17:04:25 UTC 2013
Author: mckusick
Date: Mon Dec 30 17:04:24 2013
New Revision: 260088
URL: http://svnweb.freebsd.org/changeset/base/260088
Log:
Fine tune filesystem block allocations under low free-space
conditions (-r254995) based on further operational experience.
Submitted by: Dmitry Sivachenko
Fix Tested by: Dmitry Sivachenko
MFC after: 2 weeks
Modified:
head/sys/ufs/ffs/ffs_alloc.c
Modified: head/sys/ufs/ffs/ffs_alloc.c
==============================================================================
--- head/sys/ufs/ffs/ffs_alloc.c Mon Dec 30 16:49:31 2013 (r260087)
+++ head/sys/ufs/ffs/ffs_alloc.c Mon Dec 30 17:04:24 2013 (r260088)
@@ -517,12 +517,12 @@ ffs_reallocblks_ufs1(ap)
fs = ip->i_fs;
ump = ip->i_ump;
/*
- * If we are not tracking block clusters or if we have less than 2%
+ * If we are not tracking block clusters or if we have less than 4%
* free blocks left, then do not attempt to cluster. Running with
* less than 5% free block reserve is not recommended and those that
* choose to do so do not expect to have good file layout.
*/
- if (fs->fs_contigsumsize <= 0 || freespace(fs, 2) < 0)
+ if (fs->fs_contigsumsize <= 0 || freespace(fs, 4) < 0)
return (ENOSPC);
buflist = ap->a_buflist;
len = buflist->bs_nchildren;
@@ -744,12 +744,12 @@ ffs_reallocblks_ufs2(ap)
fs = ip->i_fs;
ump = ip->i_ump;
/*
- * If we are not tracking block clusters or if we have less than 2%
+ * If we are not tracking block clusters or if we have less than 4%
* free blocks left, then do not attempt to cluster. Running with
* less than 5% free block reserve is not recommended and those that
* choose to do so do not expect to have good file layout.
*/
- if (fs->fs_contigsumsize <= 0 || freespace(fs, 2) < 0)
+ if (fs->fs_contigsumsize <= 0 || freespace(fs, 4) < 0)
return (ENOSPC);
buflist = ap->a_buflist;
len = buflist->bs_nchildren;
More information about the svn-src-all
mailing list