diff options
author | Jakob Unterwurzacher | 2020-05-24 14:57:30 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-05-24 15:30:14 +0200 |
commit | 2a9b99a0ef8d1eb8b067374462f31a19a098ef64 (patch) | |
tree | 78e7939648f2b8b41aa74dc1ae87c9e2ff14b4b3 /internal/fusefrontend/fs_dir.go | |
parent | 11dfcfd6c01500aa2c9fd50857fd70cd66a96e69 (diff) |
fusefrontend: don't clear dircache on Mkdir
Mkdir can not cause existing entries in the cache to go
stale. So don't clear it. Benchmark results:
sshfs-benchmark.bash: sshfs gocryptfs-on-sshfs
git init 1.65 8.74
rsync 6.09 17.54
Diffstat (limited to 'internal/fusefrontend/fs_dir.go')
-rw-r--r-- | internal/fusefrontend/fs_dir.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go index 98986fe..8481d56 100644 --- a/internal/fusefrontend/fs_dir.go +++ b/internal/fusefrontend/fs_dir.go @@ -54,7 +54,6 @@ func (fs *FS) mkdirWithIv(dirfd int, cName string, mode uint32, context *fuse.Co // // Symlink-safe through use of Mkdirat(). func (fs *FS) Mkdir(newPath string, mode uint32, context *fuse.Context) (code fuse.Status) { - defer fs.dirCache.Clear() if fs.isFiltered(newPath) { return fuse.EPERM } |