mirror of
https://github.com/justinian/jsix.git
synced 2025-12-11 08:54:31 -08:00
[kernel] Remove page_table's cache counter
The `s_cache_count` counter had the potential to get out of sync with the cache itself. Since we only call `fill_table_page_cache()` when the cache is empty, the counter was not useful. After chasing the bug for hours to figure out how they were getting out of sync, I just ripped it out.
This commit is contained in:
@@ -141,7 +141,6 @@ struct page_table
|
||||
static void fill_table_page_cache();
|
||||
|
||||
static free_page_header *s_page_cache; ///< Cache of free pages to use for tables
|
||||
static size_t s_cache_count; ///< Number of pages in s_page_cache
|
||||
static util::spinlock s_lock; ///< Lock for shared page cache
|
||||
|
||||
/// Get an entry in the page table as a page_table pointer
|
||||
|
||||
Reference in New Issue
Block a user