summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/InodeWatcher.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/InodeWatcher.cpp
parentab50a1480f340932868cfbb788210fb37da9c18f (diff)
downloadserenity-9457d83986a9c4dce4a0e75a1d005aa7dd60f5cf.zip
Kernel: Rename Locker => MutexLocker
Diffstat (limited to 'Kernel/FileSystem/InodeWatcher.cpp')
-rw-r--r--Kernel/FileSystem/InodeWatcher.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Kernel/FileSystem/InodeWatcher.cpp b/Kernel/FileSystem/InodeWatcher.cpp
index 7880aff286..0f3153b62d 100644
--- a/Kernel/FileSystem/InodeWatcher.cpp
+++ b/Kernel/FileSystem/InodeWatcher.cpp
@@ -27,13 +27,13 @@ InodeWatcher::~InodeWatcher()
bool InodeWatcher::can_read(const FileDescription&, size_t) const
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
return !m_queue.is_empty();
}
KResultOr<size_t> InodeWatcher::read(FileDescription&, u64, UserOrKernelBuffer& buffer, size_t buffer_size)
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
if (m_queue.is_empty())
// can_read will catch the blocking case.
return EAGAIN;
@@ -72,7 +72,7 @@ KResultOr<size_t> InodeWatcher::read(FileDescription&, u64, UserOrKernelBuffer&
KResult InodeWatcher::close()
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
for (auto& entry : m_wd_to_watches) {
auto& inode = const_cast<Inode&>(entry.value->inode);
@@ -91,7 +91,7 @@ String InodeWatcher::absolute_path(const FileDescription&) const
void InodeWatcher::notify_inode_event(Badge<Inode>, InodeIdentifier inode_id, InodeWatcherEvent::Type event_type, String const& name)
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
auto it = m_inode_to_watches.find(inode_id);
if (it == m_inode_to_watches.end())
@@ -107,7 +107,7 @@ void InodeWatcher::notify_inode_event(Badge<Inode>, InodeIdentifier inode_id, In
KResultOr<int> InodeWatcher::register_inode(Inode& inode, unsigned event_mask)
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
if (m_inode_to_watches.find(inode.identifier()) != m_inode_to_watches.end())
return EEXIST;
@@ -135,7 +135,7 @@ KResultOr<int> InodeWatcher::register_inode(Inode& inode, unsigned event_mask)
KResult InodeWatcher::unregister_by_wd(int wd)
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
auto it = m_wd_to_watches.find(wd);
if (it == m_wd_to_watches.end())
@@ -152,7 +152,7 @@ KResult InodeWatcher::unregister_by_wd(int wd)
void InodeWatcher::unregister_by_inode(Badge<Inode>, InodeIdentifier identifier)
{
- Locker locker(m_lock);
+ MutexLocker locker(m_lock);
auto it = m_inode_to_watches.find(identifier);
if (it == m_inode_to_watches.end())