mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Kernel: Use shared locking mode in some places
The notable piece of code that remains to be converted is Ext2FS.
This commit is contained in:
committed by
Andreas Kling
parent
05ba4295e9
commit
54550365eb
@@ -168,7 +168,7 @@ ByteBuffer FileDescription::read_entire_file()
|
||||
|
||||
ssize_t FileDescription::get_dir_entries(u8* buffer, ssize_t size)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
LOCKER(m_lock, Lock::Mode::Shared);
|
||||
if (!is_directory())
|
||||
return -ENOTDIR;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user