From owner-cvs-all@FreeBSD.ORG Sat Sep 24 07:03:09 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C668616A41F; Sat, 24 Sep 2005 07:03:09 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8597143D55; Sat, 24 Sep 2005 07:03:09 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8O739qN061701; Sat, 24 Sep 2005 07:03:09 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8O739pu061700; Sat, 24 Sep 2005 07:03:09 GMT (envelope-from phk) Message-Id: <200509240703.j8O739pu061700@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 24 Sep 2005 07:03:09 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/devfs devfs.h devfs_rule.c devfs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 07:03:09 -0000 phk 2005-09-24 07:03:09 UTC FreeBSD src repository Modified files: sys/fs/devfs devfs.h devfs_rule.c devfs_vfsops.c Log: Make rule zero really magical, that way we don't have to do anything when we mount and get zero cost if no rules are used in a mountpoint. Add code to deref rules on unmount. Switch from SLIST to TAILQ. Drop SYSINIT, use SX_SYSINIT and static initializer of TAILQ instead. Drop goto, a break will do. Reduce double pointers to single pointers. Combine reaping and destroying rulesets. Avoid memory leaks in a some error cases. Revision Changes Path 1.28 +1 -1 src/sys/fs/devfs/devfs.h 1.20 +97 -151 src/sys/fs/devfs/devfs_rule.c 1.48 +1 -1 src/sys/fs/devfs/devfs_vfsops.c