afs: afs_CacheIsTooFull macro refs wrong constant

When afs_CacheIsTooFull tests the number of free blocks it should
use CM_DCACHESPACEFREEPCT (90%) instead of CM_DCACHECOUNTFREEPCT (95%).

Change-Id: I1c9ac4f9a6d03077047837af6ef9a09e256ea07d
Reviewed-on: http://gerrit.openafs.org/10235
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Jeffrey Altman 2013-09-07 13:55:58 -04:00
parent b73fa104ea
commit 3fa2f656f3

View File

@ -1413,7 +1413,7 @@ extern struct brequest afs_brs[NBRS]; /* request structures */
#define afs_CacheIsTooFull() \
(afs_blocksUsed - afs_blocksDiscarded > \
PERCENT(CM_DCACHECOUNTFREEPCT, afs_cacheBlocks) || \
PERCENT(CM_DCACHESPACEFREEPCT, afs_cacheBlocks) || \
afs_freeDCCount - afs_discardDCCount < \
PERCENT(100 - CM_DCACHECOUNTFREEPCT, afs_cacheFiles))