mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +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:
parent
05ba4295e9
commit
54550365eb
11 changed files with 26 additions and 26 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue