File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ KResultOr<NonnullRefPtr<Inode>> SysFSInode::lookup(StringView)
113
113
114
114
InodeMetadata SysFSInode::metadata () const
115
115
{
116
- MutexLocker locker (m_inode_lock);
116
+ // NOTE: No locking required as m_associated_component or its component index will never change during our lifetime.
117
117
InodeMetadata metadata;
118
118
metadata.inode = { fsid (), m_associated_component->component_index () };
119
119
metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
@@ -179,7 +179,7 @@ SysFSDirectoryInode::~SysFSDirectoryInode()
179
179
180
180
InodeMetadata SysFSDirectoryInode::metadata () const
181
181
{
182
- MutexLocker locker (m_inode_lock);
182
+ // NOTE: No locking required as m_associated_component or its component index will never change during our lifetime.
183
183
InodeMetadata metadata;
184
184
metadata.inode = { fsid (), m_associated_component->component_index () };
185
185
metadata.mode = S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH | S_IXOTH;
You can’t perform that action at this time.
0 commit comments