mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:15:06 +00:00
Kernel: Rename Inode::m_lock => m_inode_lock
This makes file system code much easier to read since it was hard when both the file system and inode locks were called "m_lock".
This commit is contained in:
parent
63e1423830
commit
3b805a57e6
8 changed files with 72 additions and 72 deletions
|
@ -110,7 +110,7 @@ RefPtr<Inode> SysFSInode::lookup(StringView)
|
|||
|
||||
InodeMetadata SysFSInode::metadata() const
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
Locker locker(m_inode_lock);
|
||||
InodeMetadata metadata;
|
||||
metadata.inode = { fsid(), m_associated_component->component_index() };
|
||||
metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
|
||||
|
@ -181,7 +181,7 @@ SysFSDirectoryInode::~SysFSDirectoryInode()
|
|||
}
|
||||
InodeMetadata SysFSDirectoryInode::metadata() const
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
Locker locker(m_inode_lock);
|
||||
InodeMetadata metadata;
|
||||
metadata.inode = { fsid(), m_associated_component->component_index() };
|
||||
metadata.mode = S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH | S_IXOTH;
|
||||
|
@ -208,7 +208,7 @@ RefPtr<Inode> SysFSDirectoryInode::lookup(StringView name)
|
|||
|
||||
KResultOr<size_t> SysFSDirectoryInode::directory_entry_count() const
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
Locker locker(m_inode_lock);
|
||||
return m_associated_component->entries_count();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue