summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/SysFS.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-18 01:13:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-18 01:53:04 +0200
commit9457d83986a9c4dce4a0e75a1d005aa7dd60f5cf (patch)
treec74f6434d1ed96276df14fb749ca5880033318d2 /Kernel/FileSystem/SysFS.cpp
parentab50a1480f340932868cfbb788210fb37da9c18f (diff)
downloadserenity-9457d83986a9c4dce4a0e75a1d005aa7dd60f5cf.zip
Kernel: Rename Locker => MutexLocker
Diffstat (limited to 'Kernel/FileSystem/SysFS.cpp')
-rw-r--r--Kernel/FileSystem/SysFS.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Kernel/FileSystem/SysFS.cpp b/Kernel/FileSystem/SysFS.cpp
index bfa7c745db..1dc08a135b 100644
--- a/Kernel/FileSystem/SysFS.cpp
+++ b/Kernel/FileSystem/SysFS.cpp
@@ -31,7 +31,7 @@ UNMAP_AFTER_INIT SysFSComponentRegistry::SysFSComponentRegistry()
UNMAP_AFTER_INIT void SysFSComponentRegistry::register_new_component(SysFSComponent& component)
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
m_root_directory->m_components.append(component);
}
@@ -42,7 +42,7 @@ NonnullRefPtr<SysFSRootDirectory> SysFSRootDirectory::create()
KResult SysFSRootDirectory::traverse_as_directory(unsigned fsid, Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
{
- Locker locker(SysFSComponentRegistry::the().get_lock());
+ MutexLocker locker(SysFSComponentRegistry::the().get_lock());
callback({ ".", { fsid, component_index() }, 0 });
callback({ "..", { fsid, 0 }, 0 });
@@ -113,7 +113,7 @@ RefPtr<Inode> SysFSInode::lookup(StringView)
InodeMetadata SysFSInode::metadata() const
{
- Locker locker(m_inode_lock);
+ MutexLocker locker(m_inode_lock);
InodeMetadata metadata;
metadata.inode = { fsid(), m_associated_component->component_index() };
metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
@@ -180,7 +180,7 @@ SysFSDirectoryInode::~SysFSDirectoryInode()
InodeMetadata SysFSDirectoryInode::metadata() const
{
- Locker locker(m_inode_lock);
+ MutexLocker locker(m_inode_lock);
InodeMetadata metadata;
metadata.inode = { fsid(), m_associated_component->component_index() };
metadata.mode = S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH | S_IXOTH;
@@ -192,13 +192,13 @@ InodeMetadata SysFSDirectoryInode::metadata() const
}
KResult SysFSDirectoryInode::traverse_as_directory(Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
{
- Locker locker(m_parent_fs.m_lock);
+ MutexLocker locker(m_parent_fs.m_lock);
return m_associated_component->traverse_as_directory(m_parent_fs.fsid(), move(callback));
}
RefPtr<Inode> SysFSDirectoryInode::lookup(StringView name)
{
- Locker locker(m_parent_fs.m_lock);
+ MutexLocker locker(m_parent_fs.m_lock);
auto component = m_associated_component->lookup(name);
if (!component)
return {};