From: Jeffrey Altman Date: Sat, 7 Sep 2013 17:55:58 +0000 (-0400) Subject: afs: afs_CacheIsTooFull macro refs wrong constant X-Git-Tag: upstream/1.8.0_pre1^2~946 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3fa2f656f3ecc52cf71d17e5f3dadec70b852e93;p=packages%2Fo%2Fopenafs.git 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 Tested-by: BuildBot --- diff --git a/src/afs/afs.h b/src/afs/afs.h index 2667006e8..8684f2215 100644 --- a/src/afs/afs.h +++ b/src/afs/afs.h @@ -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))