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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user