summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/TmpFS.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-05 18:55:55 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-05 18:55:55 +0200
commitcaaeae9607ac45db4d28f952e509ce2a4b1270eb (patch)
treedfaae8fb06993976abcad478df9a1c1dcbe7ddac /Kernel/FileSystem/TmpFS.h
parent12d9a6c1fa31852d9269630cd7a3c0c5e6f4cc16 (diff)
downloadserenity-caaeae9607ac45db4d28f952e509ce2a4b1270eb.zip
Kernel: Make FileSystem::get_inode() return KResultOr<NRP<Inode>>
This allows for natural error propagation in a bunch of new places.
Diffstat (limited to 'Kernel/FileSystem/TmpFS.h')
-rw-r--r--Kernel/FileSystem/TmpFS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/TmpFS.h b/Kernel/FileSystem/TmpFS.h
index 3364a51578..c34290e4b3 100644
--- a/Kernel/FileSystem/TmpFS.h
+++ b/Kernel/FileSystem/TmpFS.h
@@ -34,7 +34,7 @@ private:
RefPtr<TmpFSInode> m_root_inode;
HashMap<InodeIndex, NonnullRefPtr<TmpFSInode>> m_inodes;
- RefPtr<Inode> get_inode(InodeIdentifier identifier) const;
+ KResultOr<NonnullRefPtr<Inode>> get_inode(InodeIdentifier identifier) const;
void register_inode(TmpFSInode&);
void unregister_inode(InodeIdentifier);