Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2013 19:51:34 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251149 - head/sys/fs/tmpfs
Message-ID:  <201305301951.r4UJpY2l030670@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305301951.r4UJpY2l030670>