Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 03/16/2000 10:20:08
Module Name:	syssrc
Committed By:	jdolecek
Date:		Thu Mar 16 18:20:07 UTC 2000

Modified Files:
	syssrc/sys/ufs/ffs: ffs_extern.h ffs_vfsops.c
	syssrc/sys/ufs/mfs: mfs_extern.h mfs_vfsops.c

Log Message:
Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading.

For each leaf filesystem, add appropriate vfs_done routine.

Also remember how many times ffs_init() was called and do
the appropriate initialization on first call only. In ffs_done(),
destroy the resources when called by the last user of ffs code.
Change mfs to call ffs_init()/ffs_done() appropriately.


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 syssrc/sys/ufs/ffs/ffs_extern.h
cvs rdiff -r1.58 -r1.59 syssrc/sys/ufs/ffs/ffs_vfsops.c
cvs rdiff -r1.8 -r1.9 syssrc/sys/ufs/mfs/mfs_extern.h
cvs rdiff -r1.22 -r1.23 syssrc/sys/ufs/mfs/mfs_vfsops.c

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