summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/SysFS
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-19 17:26:07 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-20 17:15:52 +0200
commite475263113387404e63cdc3666391934604eb6e7 (patch)
tree5d15d4f41a7811f58171b6e8bdd6ae014e2bea7d /Kernel/FileSystem/SysFS
parent4889eb019a47478e50e1876f9584356e957e4ea4 (diff)
downloadserenity-e475263113387404e63cdc3666391934604eb6e7.zip
AK+Kernel: Add AK::AtomicRefCounted and use everywhere in the kernel
Instead of having two separate implementations of AK::RefCounted, one for userspace and one for kernelspace, there is now RefCounted and AtomicRefCounted.
Diffstat (limited to 'Kernel/FileSystem/SysFS')
-rw-r--r--Kernel/FileSystem/SysFS/Component.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/SysFS/Component.h b/Kernel/FileSystem/SysFS/Component.h
index 6aee4a4e4e..8ecbee5f87 100644
--- a/Kernel/FileSystem/SysFS/Component.h
+++ b/Kernel/FileSystem/SysFS/Component.h
@@ -6,9 +6,9 @@
#pragma once
+#include <AK/AtomicRefCounted.h>
#include <AK/Error.h>
#include <AK/Function.h>
-#include <AK/RefCounted.h>
#include <AK/RefPtr.h>
#include <AK/StringView.h>
#include <AK/Types.h>
@@ -24,7 +24,7 @@ struct SysFSInodeData : public OpenFileDescriptionData {
};
class SysFSDirectory;
-class SysFSComponent : public RefCounted<SysFSComponent> {
+class SysFSComponent : public AtomicRefCounted<SysFSComponent> {
friend class SysFSDirectory;
public: