From owner-svn-src-all@FreeBSD.ORG Thu May 30 19:51:34 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8053E1DA; Thu, 30 May 2013 19:51:34 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7187F196; Thu, 30 May 2013 19:51:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4UJpYhF030671; Thu, 30 May 2013 19:51:34 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4UJpY2l030670; Thu, 30 May 2013 19:51:34 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201305301951.r4UJpY2l030670@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 30 May 2013 19:51:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251149 - head/sys/fs/tmpfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 19:51:34 -0000 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;