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())