Pārlūkot izejas kodu

Kernel: Make Custody slab-allocated

Andreas Kling 5 gadi atpakaļ
vecāks
revīzija
6428669a37
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      Kernel/FileSystem/Custody.h

+ 6 - 1
Kernel/FileSystem/Custody.h

@@ -31,13 +31,18 @@
 #include <AK/RefPtr.h>
 #include <AK/String.h>
 #include <Kernel/Forward.h>
+#include <Kernel/Heap/SlabAllocator.h>
 
 namespace Kernel {
 
 // FIXME: Custody needs some locking.
 
-class Custody : public RefCounted<Custody>
+class Custody
+    : public RefCounted<Custody>
     , public InlineLinkedListNode<Custody> {
+
+    MAKE_SLAB_ALLOCATED(Custody)
+
 public:
     static Custody* get_if_cached(Custody* parent, const StringView& name);
     static NonnullRefPtr<Custody> get_or_create(Custody* parent, const StringView& name, Inode&, int mount_flags);