mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
ProcFS: Take the "all inodes" lock when generating /proc/inodes
Otherwise the kernel asserts.
This commit is contained in:
parent
086522537e
commit
dfce9051fa
3 changed files with 8 additions and 0 deletions
|
@ -120,6 +120,8 @@ public:
|
|||
Inode* m_next { nullptr };
|
||||
Inode* m_prev { nullptr };
|
||||
|
||||
static SpinLock<u32>& all_inodes_lock();
|
||||
|
||||
protected:
|
||||
Inode(FS& fs, unsigned index);
|
||||
void set_metadata_dirty(bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue