1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:18:14 +00:00

Kernel: Make a copy of the dirty inode list before iterating in sync().

This commit is contained in:
Andreas Kling 2019-02-28 21:51:59 +01:00
parent bff5b71467
commit 6b581aff77
6 changed files with 18 additions and 8 deletions

View file

@ -25,6 +25,7 @@ class LocalSocket;
class VMObject;
class FS : public Retainable<FS> {
friend class Inode;
public:
virtual ~FS();
@ -60,6 +61,8 @@ public:
protected:
FS();
mutable Lock m_lock;
private:
unsigned m_fsid { 0 };
bool m_readonly { false };
@ -67,6 +70,7 @@ private:
class Inode : public Retainable<Inode> {
friend class VFS;
friend class FS;
public:
virtual ~Inode();