mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
Kernel: Move TmpFS towards OOM safety
This commit is contained in:
parent
8f9872581b
commit
23c021912e
Notes:
sideshowbarker
2024-07-18 17:02:15 +09:00
Author: https://github.com/bgianfo
Commit: 23c021912e
Pull-request: https://github.com/SerenityOS/serenity/pull/7624
2 changed files with 15 additions and 12 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue