aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJulio Merino <jmmv@google.com>2016-02-08 11:43:01 -0500
committerJulio Merino <jmmv@meroh.net>2016-02-08 20:50:22 -0500
commitd8230e72ca01fd27509ef7134f0957c73f164ae3 (patch)
tree2dac21fc3dc0ab2dd2103350d08e560177c634a5 /cache.h
parente0025219b33de3cbf3152884b48412feb461c894 (diff)
downloadsshfs-d8230e72ca01fd27509ef7134f0957c73f164ae3.tar
sshfs-d8230e72ca01fd27509ef7134f0957c73f164ae3.tar.gz
sshfs-d8230e72ca01fd27509ef7134f0957c73f164ae3.tar.bz2
sshfs-d8230e72ca01fd27509ef7134f0957c73f164ae3.zip
Drop the cache_enabled hack
cache_enabled leaked the cache.on setting from the cache module abstraction back into sshfs, and it only did so for the Darwin case. This hack was being used to avoid calling cache_add_attr and cache_invalidate when the cache was disabled... but these two functions already do nothing when in that case: there is no need to do a second check in the caller.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/cache.h b/cache.h
index 23ff970..cec9ca4 100644
--- a/cache.h
+++ b/cache.h
@@ -27,7 +27,3 @@ int cache_parse_options(struct fuse_args *args);
void cache_add_attr(const char *path, const struct stat *stbuf, uint64_t wrctr);
void cache_invalidate(const char *path);
uint64_t cache_get_write_ctr(void);
-
-#if __APPLE__
-extern int cache_enabled;
-#endif