Kernel: Remove completely unnecessary lock on file lookup

Mount point lookup already does locking internally, there is no need for
a lock for the whole duration of the lookup :D
This commit is contained in:
2026-05-21 01:57:56 +03:00
parent 6a58c716bd
commit 81d8ab3d79
2 changed files with 5 additions and 6 deletions

View File

@@ -92,8 +92,9 @@ namespace Kernel
MountPoint* mount_from_root_inode(BAN::RefPtr<Inode>);
private:
Mutex m_mutex;
BAN::RefPtr<FileSystem> m_root_fs;
Mutex m_mount_point_lock;
BAN::Vector<MountPoint> m_mount_points;
friend class BAN::RefPtr<VirtualFileSystem>;