From 05b627d03717fd1b1a7a0aa6f4dc5505fd836c56 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 25 Feb 2023 18:06:23 +0100 Subject: [PATCH] tmpfs: Make m_next_inode_number atomic --- kernel/src/fs/tmpfs/FileSystem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/src/fs/tmpfs/FileSystem.h b/kernel/src/fs/tmpfs/FileSystem.h index 77c012c1..b92a5072 100644 --- a/kernel/src/fs/tmpfs/FileSystem.h +++ b/kernel/src/fs/tmpfs/FileSystem.h @@ -1,5 +1,6 @@ #pragma once #include "fs/VFS.h" +#include #include #include @@ -27,7 +28,7 @@ namespace TmpFS SharedPtr m_root_inode; Vector> m_inodes; - usize m_next_inode_number { 2 }; + Atomic m_next_inode_number { 2 }; }; class Inode : public VFS::FileInode