1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

Kernel: Use IntrusiveList for keeping track of InodeWatchers

This commit is contained in:
Andreas Kling 2021-07-21 20:09:57 +02:00
parent cdc1315dc8
commit 43d6a7e74e
3 changed files with 19 additions and 14 deletions

View file

@ -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>;
};
}