mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Kernel: Make Inode::read_entire() return a KBuffer (not ByteBuffer)
ByteBuffer is backed by kmalloc heap memory which is a scarce resource. This fixes an OOM panic when traversing a large directory.
This commit is contained in:
parent
ec93d6ffdc
commit
62ec6e5fe0
Notes:
sideshowbarker
2024-07-19 03:53:17 +09:00
Author: https://github.com/awesomekling
Commit: 62ec6e5fe0
7 changed files with 12 additions and 16 deletions
|
@ -71,7 +71,7 @@ public:
|
|||
|
||||
ssize_t get_dir_entries(u8* buffer, ssize_t);
|
||||
|
||||
KResultOr<ByteBuffer> read_entire_file();
|
||||
KResultOr<KBuffer> read_entire_file();
|
||||
|
||||
String absolute_path() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue