mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Kernel: Assign Lock names in class member initializers.
This commit is contained in:
parent
2dc72bb297
commit
c3b7ace3e0
12 changed files with 11 additions and 18 deletions
|
@ -25,8 +25,7 @@ HashTable<Inode*>& all_inodes()
|
|||
}
|
||||
|
||||
FS::FS()
|
||||
: m_lock("FS")
|
||||
, m_fsid(++s_lastFileSystemID)
|
||||
: m_fsid(++s_lastFileSystemID)
|
||||
{
|
||||
all_fses().set(m_fsid, this);
|
||||
}
|
||||
|
@ -87,8 +86,7 @@ FS::DirectoryEntry::DirectoryEntry(const char* n, int nl, InodeIdentifier i, byt
|
|||
}
|
||||
|
||||
Inode::Inode(FS& fs, unsigned index)
|
||||
: m_lock("Inode")
|
||||
, m_fs(fs)
|
||||
: m_fs(fs)
|
||||
, m_index(index)
|
||||
{
|
||||
all_inodes().set(this);
|
||||
|
|
|
@ -62,7 +62,7 @@ public:
|
|||
protected:
|
||||
FS();
|
||||
|
||||
mutable Lock m_lock;
|
||||
mutable Lock m_lock { "FS" };
|
||||
|
||||
private:
|
||||
unsigned m_fsid { 0 };
|
||||
|
@ -133,7 +133,7 @@ protected:
|
|||
void inode_contents_changed(off_t, ssize_t, const byte*);
|
||||
void inode_size_changed(size_t old_size, size_t new_size);
|
||||
|
||||
mutable Lock m_lock;
|
||||
mutable Lock m_lock { "Inode" };
|
||||
|
||||
private:
|
||||
FS& m_fs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue