summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/InodeWatcher.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-12 09:18:47 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-12 10:26:29 +0100
commite44c1792a782c1a1c3218379ec4f5e7aa7b994f7 (patch)
treee8481a1b7a3849ca750b7cc2f649a77b72f66573 /Kernel/FileSystem/InodeWatcher.cpp
parentc8a90a31b6eb038fb42e1ed87178bf539fe20934 (diff)
downloadserenity-e44c1792a782c1a1c3218379ec4f5e7aa7b994f7.zip
Kernel: Add distinct InodeIndex type
Use the DistinctNumeric mechanism to make InodeIndex a strongly typed integer type.
Diffstat (limited to 'Kernel/FileSystem/InodeWatcher.cpp')
-rw-r--r--Kernel/FileSystem/InodeWatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/InodeWatcher.cpp b/Kernel/FileSystem/InodeWatcher.cpp
index c54b3fef76..fca37c099c 100644
--- a/Kernel/FileSystem/InodeWatcher.cpp
+++ b/Kernel/FileSystem/InodeWatcher.cpp
@@ -104,14 +104,14 @@ void InodeWatcher::notify_inode_event(Badge<Inode>, InodeWatcherEvent::Type even
void InodeWatcher::notify_child_added(Badge<Inode>, const InodeIdentifier& child_id)
{
LOCKER(m_lock);
- m_queue.enqueue({ InodeWatcherEvent::Type::ChildAdded, child_id.index() });
+ m_queue.enqueue({ InodeWatcherEvent::Type::ChildAdded, child_id.index().value() });
evaluate_block_conditions();
}
void InodeWatcher::notify_child_removed(Badge<Inode>, const InodeIdentifier& child_id)
{
LOCKER(m_lock);
- m_queue.enqueue({ InodeWatcherEvent::Type::ChildRemoved, child_id.index() });
+ m_queue.enqueue({ InodeWatcherEvent::Type::ChildRemoved, child_id.index().value() });
evaluate_block_conditions();
}