1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:44:58 +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:
Andreas Kling 2021-07-17 22:36:04 +02:00
parent d1bbe8b652
commit b8d6c3722d
15 changed files with 0 additions and 92 deletions

View file

@ -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);