diff options
author | Jakob Unterwurzacher | 2021-04-07 07:15:14 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-04-07 07:18:35 +0200 |
commit | 4a07d6598cc2633634f7ff8485b506f2a8bd3eaf (patch) | |
tree | 1f1d1e6c6ac90bd2a38dc70344e02fdb55b63c63 /internal/fusefrontend/root_node.go | |
parent | 770c4deb7182b17a5a2f35a7ebfc0f5ef0cae158 (diff) |
fusefrontend: make dirCache work for "node itself"
"node itself" can be converted to node + child by
ascending one level.
Performance gains are spectacular, as will be seen
in the next commit.
Diffstat (limited to 'internal/fusefrontend/root_node.go')
-rw-r--r-- | internal/fusefrontend/root_node.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/fusefrontend/root_node.go b/internal/fusefrontend/root_node.go index 3a2ecf3..e998e9d 100644 --- a/internal/fusefrontend/root_node.go +++ b/internal/fusefrontend/root_node.go @@ -5,7 +5,6 @@ import ( "path/filepath" "strings" "sync" - "sync/atomic" "syscall" "time" @@ -127,8 +126,6 @@ func (rn *RootNode) reportMitigatedCorruption(item string) { // // Prevents name clashes with internal files when file names are not encrypted func (rn *RootNode) isFiltered(path string) bool { - atomic.StoreUint32(&rn.IsIdle, 0) - if !rn.args.PlaintextNames { return false } |