mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +00:00
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!
This commit is contained in:
parent
81e3ea29c3
commit
c7c63727bf
Notes:
sideshowbarker
2024-07-18 21:54:16 +09:00
Author: https://github.com/awesomekling
Commit: c7c63727bf
1 changed files with 0 additions and 1 deletions
|
@ -180,7 +180,6 @@ NonnullRefPtr<Inode> 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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue