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:
Bahadir Balban
2008-10-30 11:09:15 +02:00
parent 13b1b405a5
commit a2d2574eac
4 changed files with 20 additions and 4 deletions

View File

@@ -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 */