summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Ext2FileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-17 22:36:04 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-17 22:36:04 +0200
commitb8d6c3722d2887e45d6f2128cf9fd6f2f657c0b7 (patch)
tree182349460cd377b49e67927e52a0bd93da79bde7 /Kernel/FileSystem/Ext2FileSystem.cpp
parentd1bbe8b65220ab500917aaf79d2051023fb00ec6 (diff)
downloadserenity-b8d6c3722d2887e45d6f2128cf9fd6f2f657c0b7.zip
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.
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.cpp')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp
index 82df1eb9de..40adb0d303 100644
--- a/Kernel/FileSystem/Ext2FileSystem.cpp
+++ b/Kernel/FileSystem/Ext2FileSystem.cpp
@@ -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);