OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 13 Mar 2008 00:37:45 EDT


Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd

Modified Files:
	afsd_init.c cm.h cm_callback.c cm_conn.c cm_ioctl.c 
	cm_performance.c cm_scache.c cm_scache.h cm_server.c 
	cm_vnodeops.c cm_volstat.c cm_volume.c cm_volume.h 
Log Message:
DELTA windows-remove-scache-volp-20080312
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

The cm_scache structure has included a reference to the associated cm_volume_t,
volp.  By doing so the reference count on the cm_volume_t objects never hits
zero unless all of the cm_scache_t objects in that volume have been reused.
This prevents cm_volume object recycling.  

This commit removes the hard reference and instead adds a function
cm_GetVolumeByFID which obtains a reference to the cm_volume that matches
the cm_scache fid value as needed.  

A new "Volumes" registry value is added to permit explicit specification
of the number of volume objects to be allocated.



--- DELTA config follows ---
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/afsd_init.c 1.115 1.116
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm.h 1.30 1.31
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_callback.c 1.79 1.80
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_conn.c 1.88 1.89
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_ioctl.c 1.111 1.112
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_performance.c 1.2 1.3
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_scache.c 1.104 1.105
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_scache.h 1.45 1.46
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_server.c 1.53 1.54
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_vnodeops.c 1.139 1.140
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_volstat.c 1.4 1.5
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_volume.c 1.49 1.50
windows-remove-scache-volp-20080312 openafs/src/WINNT/afsd/cm_volume.h 1.15 1.16