diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-05-28 05:41:05 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-01 23:14:40 +0100 |
commit | 23c021912e3e550400d862de93cc152d5818a653 (patch) | |
tree | 2fc4c21fb56f833825886abb26e2dc30b1c13fd2 /Kernel/FileSystem/TmpFS.h | |
parent | 8f9872581b94761fe217b72add803f23dc27f571 (diff) | |
download | serenity-23c021912e3e550400d862de93cc152d5818a653.zip |
Kernel: Move TmpFS towards OOM safety
Diffstat (limited to 'Kernel/FileSystem/TmpFS.h')
-rw-r--r-- | Kernel/FileSystem/TmpFS.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/TmpFS.h b/Kernel/FileSystem/TmpFS.h index 0557e00286..823a21c33c 100644 --- a/Kernel/FileSystem/TmpFS.h +++ b/Kernel/FileSystem/TmpFS.h @@ -21,7 +21,7 @@ class TmpFS final : public FS { public: virtual ~TmpFS() override; - static NonnullRefPtr<TmpFS> create(); + static RefPtr<TmpFS> create(); virtual bool initialize() override; virtual const char* class_name() const override { return "TmpFS"; } @@ -74,8 +74,8 @@ public: private: TmpFSInode(TmpFS& fs, InodeMetadata metadata, InodeIdentifier parent); - static NonnullRefPtr<TmpFSInode> create(TmpFS&, InodeMetadata metadata, InodeIdentifier parent); - static NonnullRefPtr<TmpFSInode> create_root(TmpFS&); + static RefPtr<TmpFSInode> create(TmpFS&, InodeMetadata metadata, InodeIdentifier parent); + static RefPtr<TmpFSInode> create_root(TmpFS&); void notify_watchers(); |