Kernel: Encapsulate the Region's COW map a bit better.

This commit is contained in:
Andreas Kling 2019-05-14 17:31:57 +02:00
commit 01ffcdfa31
Notes: sideshowbarker 2024-07-19 14:08:51 +09:00
5 changed files with 19 additions and 13 deletions

View file

@ -75,7 +75,8 @@ public:
m_page_directory.clear();
}
const Bitmap& cow_map() const { return m_cow_map; }
bool should_cow(size_t page_index) const { return m_cow_map.get(page_index); }
void set_should_cow(size_t page_index, bool cow) { m_cow_map.set(page_index, cow); }
void set_writable(bool b) { m_writable = b; }