1
Fork 0
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:
Andreas Kling 2019-01-23 05:42:23 +01:00
parent 730c14e647
commit db35d59994
2 changed files with 4 additions and 3 deletions

View file

@ -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 };