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:
parent
aba7829724
commit
82760998a9
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue