From 9457d83986a9c4dce4a0e75a1d005aa7dd60f5cf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 18 Jul 2021 01:13:34 +0200 Subject: Kernel: Rename Locker => MutexLocker --- Kernel/FileSystem/InodeWatcher.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Kernel/FileSystem/InodeWatcher.cpp') 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 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 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(entry.value->inode); @@ -91,7 +91,7 @@ String InodeWatcher::absolute_path(const FileDescription&) const void InodeWatcher::notify_inode_event(Badge, 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, InodeIdentifier inode_id, In KResultOr 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 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, 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()) -- cgit v1.2.3