svn commit: r251149 - head/sys/fs/tmpfs
Konstantin Belousov
kib at FreeBSD.org
Thu May 30 19:51:34 UTC 2013
Author: kib
Date: Thu May 30 19:51:33 2013
New Revision: 251149
URL: http://svnweb.freebsd.org/changeset/base/251149
Log:
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
Modified:
head/sys/fs/tmpfs/tmpfs_subr.c
Modified: head/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_subr.c Thu May 30 19:24:29 2013 (r251148)
+++ head/sys/fs/tmpfs/tmpfs_subr.c Thu May 30 19:51:33 2013 (r251149)
@@ -314,6 +314,8 @@ tmpfs_free_node(struct tmpfs_mount *tmp,
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;
More information about the svn-src-all
mailing list