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.6.6_pre2^2~19 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8695976b8bbc29b05d65563a1f54e90abb00e0c4;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: I7ecb795e04a2bb3aae801a6feb57f205d3ad4d46 Reviewed-on: http://gerrit.openafs.org/10434 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Marc Dionne Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/afs/afs.h b/src/afs/afs.h index 25b69b6ac..76394a0f7 100644 --- a/src/afs/afs.h +++ b/src/afs/afs.h @@ -1363,7 +1363,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))