Kernel: Make disk cache entry lookup O(log n)

I have absolutely no idea why i was doing a linear lookup here :D
This commit is contained in:
2026-01-01 17:36:56 +02:00
parent 9fbd9288b2
commit 33b6536e6b
2 changed files with 70 additions and 60 deletions

View File

@@ -28,6 +28,8 @@ namespace Kernel
private:
BAN::ErrorOr<void> sync_cache_index(size_t index);
size_t find_sector_cache_index(uint64_t sector) const;
private:
struct PageCache
{