diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-03 17:47:31 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-03 17:48:02 +0100 |
commit | 82760998a9786a95129a7ccb33335889b2c07439 (patch) | |
tree | 842d170b4eb0de7d828560e20070ffaf68d18309 /Kernel/FileSystem/Ext2FileSystem.cpp | |
parent | aba782972440cea5d95df9401fb27baef4bbfdec (diff) | |
download | serenity-82760998a9786a95129a7ccb33335889b2c07439.zip |
Ext2FS: Take the inode lock in Ext2FSInode::metadata()
Remove an unnecessary InterruptDisabler to make this not assert. :^)
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.cpp')
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index a174f0fa78..66d23fe7cf 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/Kernel/FileSystem/Ext2FileSystem.cpp @@ -531,7 +531,7 @@ Ext2FSInode::~Ext2FSInode() InodeMetadata Ext2FSInode::metadata() const { - // FIXME: This should probably take the inode lock, no? + LOCKER(m_lock); InodeMetadata metadata; metadata.inode = identifier(); metadata.size = m_raw_inode.i_size; |