summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/fusefrontend/file.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index 3313934..74a56c3 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -401,11 +401,10 @@ func (f *File) Release() {
if f.released {
log.Panicf("ino%d fh%d: double release", f.qIno.Ino, f.intFd())
}
- f.fd.Close()
f.released = true
- f.fdLock.Unlock()
-
openfiletable.Unregister(f.qIno)
+ f.fd.Close()
+ f.fdLock.Unlock()
}
// Flush - FUSE call