summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2012-01-16 15:47:42 +0000
committerivoras <ivoras@FreeBSD.org>2012-01-16 15:47:42 +0000
commit05c07bee542bd3b0ec55103ffdc08a2d2709830b (patch)
tree733994b44e7874201c4cbc46bdc0b6d97e8d9257 /sys/ufs
parentc0b68d117e7f188082aabf057a5216e2c70bdb30 (diff)
downloadFreeBSD-src-05c07bee542bd3b0ec55103ffdc08a2d2709830b.zip
FreeBSD-src-05c07bee542bd3b0ec55103ffdc08a2d2709830b.tar.gz
Add a bit of verbosity to the comment.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_dirhash.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c
index 248a101..b51fdff 100644
--- a/sys/ufs/ufs/ufs_dirhash.c
+++ b/sys/ufs/ufs/ufs_dirhash.c
@@ -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++;
OpenPOWER on IntegriCloud