From 81e3ea29c3b11055d588c4296e5a68a7d2d6a21c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 Feb 2021 17:18:16 +0100 Subject: [PATCH] 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. --- Kernel/FileSystem/Ext2FileSystem.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index 4fcca1d199..59300eab4e 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/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))