mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:15:07 +00:00
Ext2FS: Remove unnecessary lock in Ext2FS::write_ext2_node()
Now that writing to the underlying storage is serialized, we don't need to take the FS lock when writing out an inode struct.
This commit is contained in:
parent
dcc5b7397f
commit
81e3ea29c3
1 changed files with 0 additions and 1 deletions
|
@ -1141,7 +1141,6 @@ unsigned Ext2FS::blocks_per_group() const
|
||||||
|
|
||||||
bool Ext2FS::write_ext2_inode(InodeIndex inode, const ext2_inode& e2inode)
|
bool Ext2FS::write_ext2_inode(InodeIndex inode, const ext2_inode& e2inode)
|
||||||
{
|
{
|
||||||
LOCKER(m_lock);
|
|
||||||
BlockIndex block_index;
|
BlockIndex block_index;
|
||||||
unsigned offset;
|
unsigned offset;
|
||||||
if (!find_block_containing_inode(inode, block_index, offset))
|
if (!find_block_containing_inode(inode, block_index, offset))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue