Bit more progress on dropping the vm_obj_link upon a collapse.

Need to implement merging of a vm object with the only shadow
reference left.
This commit is contained in:
Bahadir Balban
2008-03-09 01:18:33 +00:00
parent ed23d82fd7
commit 584815a4db
2 changed files with 61 additions and 110 deletions

View File

@@ -109,9 +109,9 @@ enum VM_OBJ_TYPE {
*/
struct vm_object {
int npages; /* Number of pages in memory */
int vma_refcnt; /* Number of vmas that refer */
int shadow_refcnt; /* Number of shadows that refer */
struct list_head shadows; /* List of vm objects that shadow this one */
int refcnt; /* Number of shadows (or vmas) that refer */
struct list_head shadowers; /* List of vm objects that shadow this one */
struct list_head shref; /* Shadow referees use this to track us */
struct vm_object *orig_obj; /* Original object that this one shadows */
unsigned int flags; /* Defines the type and flags of the object */
struct list_head list; /* List of all vm objects in memory */