mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02: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:
Notes:
sideshowbarker
2024-07-18 08:51:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b8d6c3722d2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user