mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 15:58:47 +00:00
Kernel: Remove Inode::directory_entry_count()
This was only used in one place: VirtualFileSystem::rmdir(), and that has now been converted to a simple directory traversal.
This commit is contained in:
parent
d1bbe8b652
commit
b8d6c3722d
Notes:
sideshowbarker
2024-07-18 08:51:17 +09:00
Author: https://github.com/awesomekling
Commit: b8d6c3722d
15 changed files with 0 additions and 92 deletions
|
@ -1709,15 +1709,6 @@ void Ext2FS::uncache_inode(InodeIndex index)
|
|||
m_inode_cache.remove(index);
|
||||
}
|
||||
|
||||
KResultOr<size_t> Ext2FSInode::directory_entry_count() const
|
||||
{
|
||||
VERIFY(is_directory());
|
||||
Locker locker(m_inode_lock);
|
||||
if (auto result = populate_lookup_cache(); result.is_error())
|
||||
return KResultOr<size_t>(result);
|
||||
return m_lookup_cache.size();
|
||||
}
|
||||
|
||||
KResult Ext2FSInode::chmod(mode_t mode)
|
||||
{
|
||||
Locker locker(m_inode_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue