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:
Andreas Kling 2021-02-26 17:18:16 +01:00
parent dcc5b7397f
commit 81e3ea29c3

View file

@ -1141,7 +1141,6 @@ unsigned Ext2FS::blocks_per_group() const
bool Ext2FS::write_ext2_inode(InodeIndex inode, const ext2_inode& e2inode)
{
LOCKER(m_lock);
BlockIndex block_index;
unsigned offset;
if (!find_block_containing_inode(inode, block_index, offset))