mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:25:08 +00:00
Kernel: Remove all friend declarations from SysFSComponentRegistry
Let them access the class using public API instead.
This commit is contained in:
parent
d40ea1a0a8
commit
a9decf5aa6
4 changed files with 6 additions and 10 deletions
|
@ -42,7 +42,7 @@ NonnullRefPtr<SysFSRootFolder> SysFSRootFolder::create()
|
|||
|
||||
KResult SysFSRootFolder::traverse_as_directory(unsigned fsid, Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
|
||||
{
|
||||
Locker locker(SysFSComponentRegistry::the().m_lock);
|
||||
Locker locker(SysFSComponentRegistry::the().get_lock());
|
||||
callback({ ".", { fsid, component_index() }, 0 });
|
||||
callback({ "..", { fsid, 0 }, 0 });
|
||||
|
||||
|
@ -64,7 +64,7 @@ NonnullRefPtr<SysFS> SysFS::create()
|
|||
}
|
||||
|
||||
SysFS::SysFS()
|
||||
: m_root_inode(SysFSComponentRegistry::the().m_root_folder->to_inode(*this))
|
||||
: m_root_inode(SysFSComponentRegistry::the().root_folder().to_inode(*this))
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue