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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user