Assert that OBJ_TMPFS flag on the vm object for the tmpfs node is
cleared when the tmpfs node is going away. Tested by: bdrewery, pho
This commit is contained in:
parent
5f8c010fd9
commit
67b4ed4b88
@ -314,6 +314,8 @@ tmpfs_free_node(struct tmpfs_mount *tmp, struct tmpfs_node *node)
|
||||
TMPFS_LOCK(tmp);
|
||||
tmp->tm_pages_used -= uobj->size;
|
||||
TMPFS_UNLOCK(tmp);
|
||||
KASSERT((uobj->flags & OBJ_TMPFS) == 0,
|
||||
("leaked OBJ_TMPFS node %p vm_obj %p", node, uobj));
|
||||
vm_object_deallocate(uobj);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user