From owner-cvs-all Sun Sep 9 16:48:32 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9EC3B37B401; Sun, 9 Sep 2001 16:48:28 -0700 (PDT) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f89NmSM41310; Sun, 9 Sep 2001 16:48:28 -0700 (PDT) (envelope-from iedowse) Message-Id: <200109092348.f89NmSM41310@freefall.freebsd.org> From: Ian Dowse Date: Sun, 9 Sep 2001 16:48:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_vfsops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2001/09/09 16:48:28 PDT Modified files: sys/ufs/ffs ffs_vfsops.c Log: The "dirpref" directory layout preference improvements make use of an array "fs_contigdirs[]" to avoid too many directories getting created in each cylinder group. The memory required for this and two other arrays (fs_csp[] and fs_maxcluster[]) is allocated with a single malloc() call, and divided up afterwards. However, the 'space' pointer is not advanced correctly, so fs_contigdirs and fs_maxcluster end up pointing to the same address. Add the missing code to advance the 'space' pointer, and remove an unnecessary update of the pointer that follows. This is likely to fix the "ffs_clusteralloc: map mismatch" panics that have been reported recently. Submitted by: Luke Mewburn Revision Changes Path 1.159 +2 -2 src/sys/ufs/ffs/ffs_vfsops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message