Subject: CVS commit: [vmlocking] src/sys/fs/tmpfs
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 10/08/2007 20:19:29
Module Name: src
Committed By: ad
Date: Mon Oct 8 20:19:29 UTC 2007
Modified Files:
src/sys/fs/tmpfs [vmlocking]: tmpfs.h tmpfs_pool.c tmpfs_subr.c
tmpfs_vfsops.c tmpfs_vnops.c
Log Message:
- Don't leave nodes dangling in order to keep track of the inode generation
number. Free them back to the pool as soon as the referenced file becomes
unused. Using arc4random() for the generation and ino_t based off the
node's in-core address is just about as as good as a disk-based file
system is going to give.
- Add assertion to catch empty directories with linkcount > 1 being freed.
This fires frequently but I haven't tracked the bug down yet..
- Use kmem_alloc.
To generate a diff of this commit:
cvs rdiff -r1.26.4.1 -r1.26.4.2 src/sys/fs/tmpfs/tmpfs.h
cvs rdiff -r1.6.8.3 -r1.6.8.4 src/sys/fs/tmpfs/tmpfs_pool.c
cvs rdiff -r1.34.4.7 -r1.34.4.8 src/sys/fs/tmpfs/tmpfs_subr.c
cvs rdiff -r1.20.4.6 -r1.20.4.7 src/sys/fs/tmpfs/tmpfs_vfsops.c
cvs rdiff -r1.37.4.5 -r1.37.4.6 src/sys/fs/tmpfs/tmpfs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.