1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 13:05:09 +00:00

Kernel: Assign Lock names in class member initializers.

This commit is contained in:
Andreas Kling 2019-05-02 03:28:20 +02:00
parent 2dc72bb297
commit c3b7ace3e0
12 changed files with 11 additions and 18 deletions

View file

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