From 3fa2f656f3ecc52cf71d17e5f3dadec70b852e93 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 7 Sep 2013 13:55:58 -0400 Subject: [PATCH] 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 --- src/afs/afs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs.h b/src/afs/afs.h index 2667006e8b..8684f22157 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))