From: Hartmut Reuter Date: Thu, 18 Oct 2012 11:14:26 +0000 (-0400) Subject: bypasscache: update threshold variable type X-Git-Tag: upstream/1.8.0_pre1^2~1906 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=df8709012b50eb0039463eeaa40b48727a4dbd7f;p=packages%2Fo%2Fopenafs.git bypasscache: update threshold variable type if we're doing things based on size, we should allow storing a size Change-Id: Ibfb15c45b8b8c7a7c17154165da98c7a8518032a Reviewed-on: http://gerrit.openafs.org/8250 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c index b8211b8de..666a83fcb 100644 --- a/src/afs/afs_bypasscache.c +++ b/src/afs/afs_bypasscache.c @@ -109,7 +109,7 @@ int cache_bypass_strategy = NEVER_BYPASS_CACHE; -int cache_bypass_threshold = AFS_CACHE_BYPASS_DISABLED; /* file size > threshold triggers bypass */ +afs_size_t cache_bypass_threshold = AFS_CACHE_BYPASS_DISABLED; /* file size > threshold triggers bypass */ int cache_bypass_prefetch = 1; /* Should we do prefetching ? */ extern afs_rwlock_t afs_xcbhash; diff --git a/src/afs/afs_bypasscache.h b/src/afs/afs_bypasscache.h index 5b6d22075..37c5669b3 100644 --- a/src/afs/afs_bypasscache.h +++ b/src/afs/afs_bypasscache.h @@ -102,7 +102,7 @@ enum cache_bypass_strategies extern int cache_bypass_prefetch; extern int cache_bypass_strategy; -extern int cache_bypass_threshold; +extern afs_size_t cache_bypass_threshold; void afs_TransitionToBypass(struct vcache *, afs_ucred_t *, int); void afs_TransitionToCaching(struct vcache *, afs_ucred_t *, int);