lighten up File object

file.entry only exists when file.isOpen
This commit is contained in:
Chris Lu
2021-04-14 20:49:15 -07:00
parent 6bc09b18c4
commit 1adc8f86ea
5 changed files with 14 additions and 16 deletions

View File

@@ -211,6 +211,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
if fh.f.isOpen == 1 {
fh.f.isOpen--
fh.f.entry = nil
fh.entryViewCache = nil
fh.reader = nil