tmpfs: Make m_next_inode_number atomic

This commit is contained in:
apio 2023-02-25 18:06:23 +01:00
parent 6daad7787a
commit 05b627d037
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -1,5 +1,6 @@
#pragma once
#include "fs/VFS.h"
#include <luna/Atomic.h>
#include <luna/Badge.h>
#include <luna/Vector.h>
@ -27,7 +28,7 @@ namespace TmpFS
SharedPtr<VFS::Inode> m_root_inode;
Vector<SharedPtr<VFS::Inode>> m_inodes;
usize m_next_inode_number { 2 };
Atomic<usize> m_next_inode_number { 2 };
};
class Inode : public VFS::FileInode