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:
Konstantin Belousov 2013-05-30 19:51:33 +00:00
parent 5f8c010fd9
commit 67b4ed4b88

View File

@ -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;