mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Ext2FS: Free Ext2FSInodes when the last user releases them.
The inode cache was keeping these alive forever. Added a cute little magic trick to Retainable that calls T::one_retain_left() when the retain count is decremented to 1.
This commit is contained in:
parent
42d9f18cae
commit
741349502f
Notes:
sideshowbarker
2024-07-19 16:06:20 +09:00
Author: https://github.com/awesomekling
Commit: 741349502f
4 changed files with 26 additions and 1 deletions
|
@ -985,3 +985,8 @@ String Ext2FSInode::reverse_lookup(InodeIdentifier child_id)
|
|||
}
|
||||
return { };
|
||||
}
|
||||
|
||||
void Ext2FSInode::one_retain_left()
|
||||
{
|
||||
fs().m_inode_cache.remove(index());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue