mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Tweak FileBackedFS API to avoid intermediary copies
read_block() and write_block() now accept the count (how many bytes to read or write) and offset (where in the block to start; defaults to 0). Using these new APIs, we can avoid doing copies between intermediary buffers in a lot more cases. Hopefully this improves performance or something.
This commit is contained in:
committed by
Andreas Kling
parent
de4b7d9c21
commit
88e23113ae
Notes:
sideshowbarker
2024-07-19 06:28:47 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/88e23113ae4 Pull-request: https://github.com/SerenityOS/serenity/pull/2288 Reviewed-by: https://github.com/awesomekling
@@ -123,7 +123,7 @@ private:
|
||||
unsigned inode_size() const;
|
||||
|
||||
bool write_ext2_inode(InodeIndex, const ext2_inode&);
|
||||
bool read_block_containing_inode(InodeIndex inode, BlockIndex& block_index, unsigned& offset, u8* buffer) const;
|
||||
bool find_block_containing_inode(InodeIndex inode, BlockIndex& block_index, unsigned& offset) const;
|
||||
|
||||
bool flush_super_block();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user