]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-volume-limit-higher-20080612
authorDerrick Brashear <shadow@dementia.org>
Thu, 12 Jun 2008 18:25:03 +0000 (18:25 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 12 Jun 2008 18:25:03 +0000 (18:25 +0000)
LICENSE IPL10

allow more volume lookups to be cached

(cherry picked from commit bc47951c9ec0845eafe0d1634f56b761cbf8b06f)

src/afs/afs_init.c

index 21b4382d9d000caf1e0a287e2514f4f56576bef0..cfbace7286347898fe1804412bcff252c73ce30b 100644 (file)
@@ -116,8 +116,8 @@ afs_CacheInit(afs_int32 astatSize, afs_int32 afiles, afs_int32 ablocks,
      */
     if (aVolumes < 50)
        aVolumes = 50;
-    else if (aVolumes > 3000)
-       aVolumes = 3000;
+    else if (aVolumes > 32767)
+       aVolumes = 32767;
 
     tv = (struct volume *)afs_osi_Alloc(aVolumes * sizeof(struct volume));
     for (i = 0; i < aVolumes - 1; i++)