summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Inode.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-21 20:09:57 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-21 20:17:55 +0200
commit43d6a7e74ec76bf23f78ca281d54c60bb7b952d1 (patch)
treeed6d08cf1a53710dbbbc6f31c390c818c4809eb1 /Kernel/FileSystem/Inode.h
parentcdc1315dc851b2b1f820eb7fe0dc973c78c71caa (diff)
downloadserenity-43d6a7e74ec76bf23f78ca281d54c60bb7b952d1.zip
Kernel: Use IntrusiveList for keeping track of InodeWatchers
Diffstat (limited to 'Kernel/FileSystem/Inode.h')
-rw-r--r--Kernel/FileSystem/Inode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h
index c40e530df4..f8c9438570 100644
--- a/Kernel/FileSystem/Inode.h
+++ b/Kernel/FileSystem/Inode.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
+ * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
@@ -8,7 +8,6 @@
#pragma once
#include <AK/Function.h>
-#include <AK/HashTable.h>
#include <AK/IntrusiveList.h>
#include <AK/RefCounted.h>
#include <AK/String.h>
@@ -17,6 +16,7 @@
#include <Kernel/FileSystem/FileSystem.h>
#include <Kernel/FileSystem/InodeIdentifier.h>
#include <Kernel/FileSystem/InodeMetadata.h>
+#include <Kernel/FileSystem/InodeWatcher.h>
#include <Kernel/Forward.h>
#include <Kernel/KResult.h>
#include <Kernel/Mutex.h>
@@ -119,7 +119,7 @@ private:
InodeIndex m_index { 0 };
WeakPtr<SharedInodeVMObject> m_shared_vmobject;
RefPtr<LocalSocket> m_socket;
- HashTable<InodeWatcher*> m_watchers;
+ InodeWatcher::List m_watchers;
bool m_metadata_dirty { false };
RefPtr<FIFO> m_fifo;
IntrusiveListNode<Inode> m_inode_list_node;