From c7c63727bfe50b8db997c61dbdd272e190533395 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 Feb 2021 17:22:28 +0100 Subject: [PATCH] Ext2FS: Remove unnecessary locking in find_block_containing_inode() This is just a bunch of index math based on immutable values in the super block and block group descriptor. No need to lock here! --- Kernel/FileSystem/Ext2FileSystem.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index 59300eab4e..8995f4acb8 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/Kernel/FileSystem/Ext2FileSystem.cpp @@ -180,7 +180,6 @@ NonnullRefPtr Ext2FS::root_inode() const bool Ext2FS::find_block_containing_inode(InodeIndex inode, BlockIndex& block_index, unsigned& offset) const { - LOCKER(m_lock); auto& super_block = this->super_block(); if (inode != EXT2_ROOT_INO && inode < EXT2_FIRST_INO(&super_block))