Kernel: Temporary fix to make tmpfs more stable

whole TmpFS will have to be rewritten at some point :)
This commit is contained in:
Bananymous 2024-11-21 18:11:11 +02:00
parent 39313e1737
commit 865061b492
2 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
#pragma once
#include <BAN/Array.h>
#include <BAN/StringView.h>
#include <kernel/Memory/Types.h>
#include <dirent.h>
#include <sys/types.h>
#include <time.h>

View File

@ -543,7 +543,7 @@ namespace Kernel
BAN::ErrorOr<void> 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())