diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-02 03:28:20 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-02 03:28:20 +0200 |
commit | c3b7ace3e0d943326575b4d6d7b6a33e47d7242a (patch) | |
tree | 3fec7ab24ff125346c7d95851b8ed30806c69b70 /Kernel/FileSystem | |
parent | 2dc72bb2974f12667cf8a934ba5fefcc78b6debb (diff) | |
download | serenity-c3b7ace3e0d943326575b4d6d7b6a33e47d7242a.zip |
Kernel: Assign Lock names in class member initializers.
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/FileSystem.cpp | 6 | ||||
-rw-r--r-- | Kernel/FileSystem/FileSystem.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Kernel/FileSystem/FileSystem.cpp b/Kernel/FileSystem/FileSystem.cpp index c05884a0dc..99a591bcda 100644 --- a/Kernel/FileSystem/FileSystem.cpp +++ b/Kernel/FileSystem/FileSystem.cpp @@ -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); diff --git a/Kernel/FileSystem/FileSystem.h b/Kernel/FileSystem/FileSystem.h index abe31cdd11..575b93b083 100644 --- a/Kernel/FileSystem/FileSystem.h +++ b/Kernel/FileSystem/FileSystem.h @@ -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; |