Skip to content

Commit

Permalink
Revert "Fix ReadDir inode leak"
Browse files Browse the repository at this point in the history
This reverts commit 0d08432.
  • Loading branch information
voyvodov committed Sep 16, 2024
1 parent 46762cc commit eb29efd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/goofys.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,16 +764,6 @@ func (fs *Goofys) ForgetInode(
fs.mu.Lock()
defer fs.mu.Unlock()

if inode.isDir() {
for _, child := range inode.dir.Children {
if *child.Name == "." || *child.Name == ".." {
continue
}
delete(fs.inodes, child.Id)
fs.forgotCnt += 1
}
}

delete(fs.inodes, op.Inode)
fs.forgotCnt += 1

Expand Down

0 comments on commit eb29efd

Please sign in to comment.