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

Ext2FS: Take the inode lock in Ext2FSInode::metadata()

Remove an unnecessary InterruptDisabler to make this not assert. :^)
This commit is contained in:
Andreas Kling 2020-01-03 17:47:31 +01:00
parent aba7829724
commit 82760998a9
2 changed files with 1 additions and 2 deletions

View file

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