tmpfs: Make m_next_inode_number atomic
This commit is contained in:
parent
6daad7787a
commit
05b627d037
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "fs/VFS.h"
|
#include "fs/VFS.h"
|
||||||
|
#include <luna/Atomic.h>
|
||||||
#include <luna/Badge.h>
|
#include <luna/Badge.h>
|
||||||
#include <luna/Vector.h>
|
#include <luna/Vector.h>
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ namespace TmpFS
|
|||||||
SharedPtr<VFS::Inode> m_root_inode;
|
SharedPtr<VFS::Inode> m_root_inode;
|
||||||
Vector<SharedPtr<VFS::Inode>> m_inodes;
|
Vector<SharedPtr<VFS::Inode>> m_inodes;
|
||||||
|
|
||||||
usize m_next_inode_number { 2 };
|
Atomic<usize> m_next_inode_number { 2 };
|
||||||
};
|
};
|
||||||
|
|
||||||
class Inode : public VFS::FileInode
|
class Inode : public VFS::FileInode
|
||||||
|
Loading…
Reference in New Issue
Block a user