]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Fix cache tracking for small fragsizes
authorAndrew Deason <adeason@sinenomine.net>
Thu, 27 Aug 2009 17:43:03 +0000 (12:43 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 17 Dec 2009 06:48:37 +0000 (22:48 -0800)
commit71c84e7453c24cb5c9b1d46462dd6253f1999654
treefde86010329b94d7d113b9fd9310dcd23e2ef42a
parentb1221143e4327b567983e2a731a40814698ec783
Fix cache tracking for small fragsizes

The tracked amount of disk cache used by a client can be incorrect when
afs_fsfragsize is tuned to below 1023. Since we round up to the next
nearest afs_fsfragsize+1 then round down to the kb, if afs_fsfragsize+1
< 1kb, we can undershoot the cache usage.

This enforces afs_fsfragsize to always be at least 1023.

Change-Id: I2f2f0b14da3f1a57348497f0a372c89388818e9c
Reviewed-on: http://gerrit.openafs.org/338
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/960
src/afs/afs_init.c