svn commit: r230221 - head/sys/ufs/ufs
Ivan Voras
ivoras at FreeBSD.org
Mon Jan 16 15:47:42 UTC 2012
Author: ivoras
Date: Mon Jan 16 15:47:42 2012
New Revision: 230221
URL: http://svn.freebsd.org/changeset/base/230221
Log:
Add a bit of verbosity to the comment.
Modified:
head/sys/ufs/ufs/ufs_dirhash.c
Modified: head/sys/ufs/ufs/ufs_dirhash.c
==============================================================================
--- head/sys/ufs/ufs/ufs_dirhash.c Mon Jan 16 15:38:45 2012 (r230220)
+++ head/sys/ufs/ufs/ufs_dirhash.c Mon Jan 16 15:47:42 2012 (r230221)
@@ -1248,7 +1248,12 @@ ufsdirhash_lowmem()
{
struct dirhash *dh, *dh_temp;
int memfreed = 0;
- /* XXX: this 10% may need to be adjusted */
+ /*
+ * Will free a *minimum* of 10% of the dirhash, but possibly much
+ * more (depending on dirhashreclaimage). System with large dirhashes
+ * probably also need a much larger dirhashreclaimage.
+ * XXX: this percentage may need to be adjusted.
+ */
int memwanted = ufs_dirhashmem / 10;
ufs_dirhashlowmemcount++;
More information about the svn-src-all
mailing list