mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Ext2FS: Take the inode lock in Ext2FSInode::metadata()
Remove an unnecessary InterruptDisabler to make this not assert. :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 10:23:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/82760998a97
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user