mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
Kernel: Fick infinite recursion when filling up disk cache
We can't be calling the virtual FS::flush_writes() in order to flush the disk cache from within the disk cache, since an FS subclass may try to do cache stuff in its flush_writes() implementation. Instead, separate out the implementation of DiskBackedFS's flushing logic into a flush_writes_impl() and call that from the cache code.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 11:27:54 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dcf8d359f36
@@ -16,6 +16,8 @@ public:
|
||||
|
||||
virtual void flush_writes() override;
|
||||
|
||||
void flush_writes_impl();
|
||||
|
||||
protected:
|
||||
explicit DiskBackedFS(NonnullRefPtr<DiskDevice>&&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user