Subject: CVS commit: [netbsd-3] src/sys/ufs/lfs
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <riz@netbsd.org>
List: source-changes
Date: 05/20/2006 22:42:51
Module Name:	src
Committed By:	riz
Date:		Sat May 20 22:42:50 UTC 2006

Modified Files:
	src/sys/ufs/lfs [netbsd-3]: lfs.h lfs_alloc.c lfs_bio.c lfs_subr.c
	    lfs_vfsops.c lfs_vnops.c

Log Message:
Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs_alloc.c: revision 1.92
	sys/ufs/lfs/lfs.h: revision 1.105
	sys/ufs/lfs/lfs_vfsops.c: revision 1.207
	sys/ufs/lfs/lfs_subr.c: revision 1.59
	sys/ufs/lfs/lfs_vnops.c: revision 1.173
	sys/ufs/lfs/lfs_bio.c: revision 1.92
Introduce another per-filesystem parameter, lfs_resvseg, to separate the
notion of "how many segments are reserved for the cleaner" from that of
"how many segments are not counted in lfs_bfree".  The default value
used for existing filesystems is the same as the previous implicit value
of (lfs_minfreeseg / 2 + 1), modulo some sanity checking.
Count pending dirops on a per-filesystem basis, since once we start
writing them we can't stop until we're done.  This seems to help stave off
the "no clean segments" panic in the case of filling the filesystem with
directories and small files (e.g. simultaneously unpacking more copies of
pkgsrc than will fit).


To generate a diff of this commit:
cvs rdiff -r1.77.2.15 -r1.77.2.16 src/sys/ufs/lfs/lfs.h
cvs rdiff -r1.76.2.9 -r1.76.2.10 src/sys/ufs/lfs/lfs_alloc.c
cvs rdiff -r1.81.2.3 -r1.81.2.4 src/sys/ufs/lfs/lfs_bio.c
cvs rdiff -r1.50.2.4 -r1.50.2.5 src/sys/ufs/lfs/lfs_subr.c
cvs rdiff -r1.167.2.19 -r1.167.2.20 src/sys/ufs/lfs/lfs_vfsops.c
cvs rdiff -r1.137.2.21 -r1.137.2.22 src/sys/ufs/lfs/lfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.