forked from Bananymous/banan-os
Kernel: Temporary fix to make tmpfs more stable
whole TmpFS will have to be rewritten at some point :)
This commit is contained in:
parent
39313e1737
commit
865061b492
|
@ -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>
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue