浏览代码

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.
Andreas Kling 4 年之前
父节点
当前提交
81e3ea29c3
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Kernel/FileSystem/Ext2FileSystem.cpp

+ 0 - 1
Kernel/FileSystem/Ext2FileSystem.cpp

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