mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Only COW on fault if the physical page has retain_count > 1.
This makes COW pages lazily-but-transparently revert back to read/write.
This commit is contained in:
parent
2d045d2a64
commit
9e62eb4856
4 changed files with 17 additions and 2 deletions
|
@ -37,6 +37,8 @@ public:
|
|||
return_to_freelist();
|
||||
}
|
||||
|
||||
unsigned retain_count() const { return m_retain_count; }
|
||||
|
||||
private:
|
||||
PhysicalPage(PhysicalAddress paddr)
|
||||
: m_paddr(paddr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue