From owner-cvs-src@FreeBSD.ORG Mon Aug 18 07:06:43 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B70D437B40D; Mon, 18 Aug 2003 07:06:43 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C369D4431C; Mon, 18 Aug 2003 06:36:09 -0700 (PDT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7IDa90U091038; Mon, 18 Aug 2003 06:36:09 -0700 (PDT) (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7IDa9v2091037; Mon, 18 Aug 2003 06:36:09 -0700 (PDT) Message-Id: <200308181336.h7IDa9v2091037@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Mon, 18 Aug 2003 06:36:09 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 14:06:45 -0000 des 2003/08/18 06:36:09 PDT FreeBSD src repository Modified files: sys/fs/pseudofs pseudofs_vnops.c Log: Rework pfs_iterate() a bit to eliminate a bug related to process directories. Previously, pfs_iterate() would return -1 when it reached the end of the process list while processing a process directory node, even if the parent directory contained further nodes (which is the case for the linprocfs root directory, where the process directory node is actually first in the list). With this patch, pfs_iterate() will continue to traverse the parent directory's node list after exhausting the process list (as was the intention all along). The code should hopefully be easier to read as well. While I'm here, have pfs_iterate() assert that the allproc lock is held. Revision Changes Path 1.38 +12 -9 src/sys/fs/pseudofs/pseudofs_vnops.c