From 865061b492bbb9aedd61627a67d3f0fb38b07f64 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 21 Nov 2024 18:11:11 +0200 Subject: [PATCH] Kernel: Temporary fix to make tmpfs more stable whole TmpFS will have to be rewritten at some point :) --- kernel/include/kernel/FS/TmpFS/Definitions.h | 2 ++ kernel/kernel/FS/TmpFS/Inode.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/include/kernel/FS/TmpFS/Definitions.h b/kernel/include/kernel/FS/TmpFS/Definitions.h index a07143452f..801fda6eb2 100644 --- a/kernel/include/kernel/FS/TmpFS/Definitions.h +++ b/kernel/include/kernel/FS/TmpFS/Definitions.h @@ -1,8 +1,10 @@ #pragma once #include +#include #include +#include #include #include diff --git a/kernel/kernel/FS/TmpFS/Inode.cpp b/kernel/kernel/FS/TmpFS/Inode.cpp index 50faabd74e..bd18f7aee6 100644 --- a/kernel/kernel/FS/TmpFS/Inode.cpp +++ b/kernel/kernel/FS/TmpFS/Inode.cpp @@ -543,7 +543,7 @@ namespace Kernel BAN::ErrorOr TmpDirectoryInode::link_inode(TmpInode& inode, BAN::StringView name) { - static constexpr size_t directory_entry_alignment = 16; + static constexpr size_t directory_entry_alignment = sizeof(TmpDirectoryEntry); auto find_result = find_inode_impl(name); if (!find_result.is_error())