diff options
author | Cam Cope <github@camcope.me> | 2021-08-30 07:35:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 15:35:33 +0100 |
commit | d54c7ecbd618afb4df524e0d96dec7fe7cc2935d (patch) | |
tree | 4ffa94f7ab1e76c2657540bab4a0e358d857bfb3 /cache.c | |
parent | 803e0e65cf63fdc95c7ad4a519a5db31d27f94d4 (diff) | |
download | sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar.gz sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar.bz2 sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.zip |
Fixup whitespace and configure CI to keep it that way
Diffstat (limited to 'cache.c')
-rw-r--r-- | cache.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -256,7 +256,7 @@ static void *cache_init(struct fuse_conn_info *conn, { void *res; res = cache.next_oper->init(conn, cfg); - + // Cache requires a path for each request cfg->nullpath_ok = 0; @@ -318,9 +318,9 @@ static int cache_releasedir(const char *path, struct fuse_file_info *fi) { int err; struct file_handle *cfi; - + cfi = (struct file_handle*) fi->fh; - + if(cfi->is_open) { fi->fh = cfi->fs_fh; err = cache.next_oper->releasedir(path, fi); @@ -365,7 +365,7 @@ static int cache_readdir(const char *path, void *buf, fuse_fill_dir_t filler, struct node *node; assert(offset == 0); - + pthread_mutex_lock(&cache.lock); node = cache_lookup(path); if (node != NULL && node->dir != NULL) { @@ -391,8 +391,8 @@ static int cache_readdir(const char *path, void *buf, fuse_fill_dir_t filler, } cfi->is_open = 1; cfi->fs_fh = fi->fh; - } - + } + ch.path = path; ch.buf = buf; ch.filler = filler; |