1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

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
parent 2fa5e2b66b
commit 01ffcdfa31
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; }