mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 01:03:14 +01:00
Added VM_DIRTY flag for file-backed objects and their pages.
Now file flushing in both munmap() and fsync() caters for VM_DIRTY. Also write_cache_pages() and write faults set this bit on pages and their objects.
This commit is contained in:
@@ -51,8 +51,8 @@ enum VM_FILE_TYPE {
|
||||
};
|
||||
|
||||
/* Defines the type of object. A file? Just a standalone object? */
|
||||
#define VM_OBJ_SHADOW (1 << 8) /* Anonymous pages, swap_pager */
|
||||
#define VM_OBJ_FILE (1 << 9) /* VFS file and device pages */
|
||||
#define VM_OBJ_SHADOW (1 << 10) /* Anonymous pages, swap_pager */
|
||||
#define VM_OBJ_FILE (1 << 11) /* VFS file and device pages */
|
||||
|
||||
struct page {
|
||||
int refcnt; /* Refcount */
|
||||
|
||||
Reference in New Issue
Block a user