From eb29efdf1de2103208e2cf898d07a2c80c8f4991 Mon Sep 17 00:00:00 2001 From: Hristo Voyvodov Date: Mon, 16 Sep 2024 11:50:38 +0300 Subject: [PATCH] Revert "Fix ReadDir inode leak" This reverts commit 0d08432bcda521a1279259c86669c3c830329b11. --- internal/goofys.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/goofys.go b/internal/goofys.go index c5c83245..4f4bd76f 100644 --- a/internal/goofys.go +++ b/internal/goofys.go @@ -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