mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
b73fa104ea
commit
3fa2f656f3
@ -1413,7 +1413,7 @@ extern struct brequest afs_brs[NBRS]; /* request structures */
|
|||||||
|
|
||||||
#define afs_CacheIsTooFull() \
|
#define afs_CacheIsTooFull() \
|
||||||
(afs_blocksUsed - afs_blocksDiscarded > \
|
(afs_blocksUsed - afs_blocksDiscarded > \
|
||||||
PERCENT(CM_DCACHECOUNTFREEPCT, afs_cacheBlocks) || \
|
PERCENT(CM_DCACHESPACEFREEPCT, afs_cacheBlocks) || \
|
||||||
afs_freeDCCount - afs_discardDCCount < \
|
afs_freeDCCount - afs_discardDCCount < \
|
||||||
PERCENT(100 - CM_DCACHECOUNTFREEPCT, afs_cacheFiles))
|
PERCENT(100 - CM_DCACHECOUNTFREEPCT, afs_cacheFiles))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user