1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

Kernel: Move TmpFS towards OOM safety

This commit is contained in:
Brian Gianforcaro 2021-05-28 05:41:05 -07:00 committed by Linus Groh
parent 8f9872581b
commit 23c021912e
2 changed files with 15 additions and 12 deletions

View file

@ -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();