Report correct cache size when -memcache is used.
authorNickolai Zeldovich <kolya@mit.edu>
Tue, 21 May 2002 07:35:57 +0000 (07:35 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Tue, 21 May 2002 07:35:57 +0000 (07:35 +0000)
src/afs/afs_init.c

index 1fd3620..36ae3d5 100644 (file)
@@ -245,7 +245,7 @@ afs_CacheInit(astatSize, afiles, ablocks, aDentries, aVolumes, achunk, aflags,
     cm_initParams.cmi_nVolumeCaches = aVolumes;
     cm_initParams.cmi_firstChunkSize = AFS_FIRSTCSIZE;
     cm_initParams.cmi_otherChunkSize = AFS_OTHERCSIZE;
-    cm_initParams.cmi_cacheSize = ablocks;
+    cm_initParams.cmi_cacheSize = afs_cacheBlocks;
     cm_initParams.cmi_setTime = afs_setTime;
     cm_initParams.cmi_memCache = (aflags & AFSCALL_INIT_MEMCACHE) ? 1 : 0;