mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 00:22:43 +02:00
InodeVMObjects now track dirty and clean pages. This tracking of dirty and clean pages is used by the msync and purge syscalls. dirty page tracking works using the following rules: * when a new InodeVMObject is made, all pages are marked clean. * writes to clean InodeVMObject pages will cause a page fault, the fault handler will mark the page as dirty. * writes to dirty InodeVMObject pages do not cause page faults. * if msync is called, only dirty pages are flushed to storage (and marked clean). * if purge syscall is called, only clean pages are discarded.
3.9 KiB
3.9 KiB