mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Kernel: Add a write cache to DiskBackedFS.
This way you can spam small write()s on a file without the kernel writing to disk every single time. Flushes are included in the FS::sync() operation and will get triggered regularly by syncd. :^)
This commit is contained in:
parent
e0cdc5db0d
commit
44673c4f3b
Notes:
sideshowbarker
2024-07-19 14:35:27 +09:00
Author: https://github.com/awesomekling
Commit: 44673c4f3b
5 changed files with 49 additions and 13 deletions
|
@ -57,6 +57,8 @@ public:
|
|||
|
||||
virtual RetainPtr<Inode> get_inode(InodeIdentifier) const = 0;
|
||||
|
||||
virtual void flush_writes() { }
|
||||
|
||||
protected:
|
||||
FS();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue