diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-21 20:09:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-21 20:17:55 +0200 |
commit | 43d6a7e74ec76bf23f78ca281d54c60bb7b952d1 (patch) | |
tree | ed6d08cf1a53710dbbbc6f31c390c818c4809eb1 /Kernel/FileSystem/InodeWatcher.h | |
parent | cdc1315dc851b2b1f820eb7fe0dc973c78c71caa (diff) | |
download | serenity-43d6a7e74ec76bf23f78ca281d54c60bb7b952d1.zip |
Kernel: Use IntrusiveList for keeping track of InodeWatchers
Diffstat (limited to 'Kernel/FileSystem/InodeWatcher.h')
-rw-r--r-- | Kernel/FileSystem/InodeWatcher.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/FileSystem/InodeWatcher.h b/Kernel/FileSystem/InodeWatcher.h index e7dca21499..6fe43e7473 100644 --- a/Kernel/FileSystem/InodeWatcher.h +++ b/Kernel/FileSystem/InodeWatcher.h @@ -80,6 +80,11 @@ private: // watch description, so they will overlap. HashMap<int, NonnullOwnPtr<WatchDescription>> m_wd_to_watches; HashMap<InodeIdentifier, WatchDescription*> m_inode_to_watches; + + IntrusiveListNode<InodeWatcher> m_list_node; + +public: + using List = IntrusiveList<InodeWatcher, RawPtr<InodeWatcher>, &InodeWatcher::m_list_node>; }; } |