diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-22 14:33:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-22 14:33:51 +0100 |
commit | 6428669a37a7ae15cf54186354f4eb49f3936f38 (patch) | |
tree | 3c869119b37114895004adf2d0d1b55c0cbd5f28 /Kernel | |
parent | ba83bf8a0dce5a4f47738663d986cb1f7a5a7ac6 (diff) | |
download | serenity-6428669a37a7ae15cf54186354f4eb49f3936f38.zip |
Kernel: Make Custody slab-allocated
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/FileSystem/Custody.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Custody.h b/Kernel/FileSystem/Custody.h index 9ba116079c..a19211c4e9 100644 --- a/Kernel/FileSystem/Custody.h +++ b/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); |