mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
VFS: Move Ext2FSInode::m_lock up to Inode so all inodes can have locking.
This commit is contained in:
parent
730c14e647
commit
db35d59994
2 changed files with 4 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <AK/AKString.h>
|
||||
#include <AK/Function.h>
|
||||
#include <AK/kstdio.h>
|
||||
#include <AK/Lock.h>
|
||||
|
||||
static const dword mepoch = 476763780;
|
||||
|
||||
|
@ -106,8 +107,10 @@ public:
|
|||
|
||||
protected:
|
||||
Inode(FS& fs, unsigned index);
|
||||
|
||||
void set_metadata_dirty(bool b) { m_metadata_dirty = b; }
|
||||
|
||||
Lock m_lock;
|
||||
|
||||
private:
|
||||
FS& m_fs;
|
||||
unsigned m_index { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue