Skip to content

Commit 9ca5fc5

Browse files
committed
Do not remove inodes from the lfru list until the inode is destroyed
Previously, when inodes were removed from lfru on resetCache, some buffers could be leaked and lead to OOM
1 parent 591c815 commit 9ca5fc5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/file.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,8 +1584,6 @@ func (inode *Inode) resetCache() {
15841584
inode.SetCacheState(ST_CACHED)
15851585
// Invalidate metadata entry
15861586
inode.AttrTime = time.Time{}
1587-
// Remove from LFRU tracker
1588-
inode.fs.lfru.Forget(inode.Id)
15891587
}
15901588

15911589
func (inode *Inode) FlushSmallObject() {

0 commit comments

Comments
 (0)