[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:
Justin C. Miller
2023-02-14 20:29:40 -08:00
parent 2c2398b549
commit dc30437ce7
2 changed files with 14 additions and 22 deletions

View File

@@ -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