TmpFS: Use fallible KBuffer API

If allocation fails, some TmpFS operations can now fail with ENOMEM.
This commit is contained in:
Andreas Kling 2020-12-18 13:34:57 +01:00
commit bcd2844439
Notes: sideshowbarker 2024-07-19 00:45:16 +09:00
2 changed files with 25 additions and 19 deletions

View file

@ -102,7 +102,7 @@ private:
InodeMetadata m_metadata;
InodeIdentifier m_parent;
Optional<KBuffer> m_content;
OwnPtr<KBuffer> m_content;
struct Child {
String name;
NonnullRefPtr<TmpFSInode> inode;