From df8709012b50eb0039463eeaa40b48727a4dbd7f Mon Sep 17 00:00:00 2001 From: Hartmut Reuter Date: Thu, 18 Oct 2012 07:14:26 -0400 Subject: [PATCH] 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 --- src/afs/afs_bypasscache.c | 2 +- src/afs/afs_bypasscache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5