diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-26 17:18:16 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-26 17:23:46 +0100 |
commit | 81e3ea29c3b11055d588c4296e5a68a7d2d6a21c (patch) | |
tree | a6031f53cc2a12fb2cacd1d37074a9965d5d6ec7 /Kernel/FileSystem | |
parent | dcc5b7397f1bb9ee129aa38c9139bb85e15e84f9 (diff) | |
download | serenity-81e3ea29c3b11055d588c4296e5a68a7d2d6a21c.zip |
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.
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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)) |