Kernel: Rewrite DiskCache

We now cache only clean pages since I don't want to think about
syncing the disk later.
This commit is contained in:
2023-07-27 21:57:32 +03:00
parent 2f52001c6d
commit 104894c0c7
4 changed files with 110 additions and 217 deletions

View File

@@ -81,8 +81,8 @@ namespace Kernel
void add_disk_cache();
private:
DiskCache* m_disk_cache { nullptr };
BAN::Vector<Partition*> m_partitions;
BAN::Optional<DiskCache> m_disk_cache;
BAN::Vector<Partition*> m_partitions;
friend class DiskCache;
};