summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Mount.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-07 12:25:00 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-09 21:54:59 +0100
commite6fc7b3ff7618cd88a03683eb5b2145c9932d562 (patch)
treea94f6090c00962ac0468a402de4d92977f813481 /Kernel/FileSystem/Mount.cpp
parent067d0689c5f7ff720fcfec9ff4d2898741948fed (diff)
downloadserenity-e6fc7b3ff7618cd88a03683eb5b2145c9932d562.zip
Kernel: Switch LockRefPtr<Inode> to RefPtr<Inode>
The main place where this is a little iffy is in RAMFS where inodes have a LockWeakPtr to their parent inode. I've left that as a LockWeakPtr for now.
Diffstat (limited to 'Kernel/FileSystem/Mount.cpp')
-rw-r--r--Kernel/FileSystem/Mount.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/FileSystem/Mount.cpp b/Kernel/FileSystem/Mount.cpp
index b123b78ddc..a44aebee47 100644
--- a/Kernel/FileSystem/Mount.cpp
+++ b/Kernel/FileSystem/Mount.cpp
@@ -36,18 +36,18 @@ ErrorOr<NonnullOwnPtr<KString>> Mount::absolute_path() const
});
}
-LockRefPtr<Inode> Mount::host()
+RefPtr<Inode> Mount::host()
{
- return m_host_custody.with([](auto& host_custody) -> LockRefPtr<Inode> {
+ return m_host_custody.with([](auto& host_custody) -> RefPtr<Inode> {
if (!host_custody)
return nullptr;
return &host_custody->inode();
});
}
-LockRefPtr<Inode const> Mount::host() const
+RefPtr<Inode const> Mount::host() const
{
- return m_host_custody.with([](auto& host_custody) -> LockRefPtr<Inode const> {
+ return m_host_custody.with([](auto& host_custody) -> RefPtr<Inode const> {
if (!host_custody)
return nullptr;
return &host_custody->inode();