make-clearcallback-faster-20050524
[openafs.git] / src / afs / afs_callback.c
index bc044c2..05885e5 100644 (file)
@@ -388,8 +388,8 @@ ClearCallBack(register struct rx_connection *a_conn,
             * Clear callback for the whole volume.  Zip through the
             * hash chain, nullifying entries whose volume ID matches.
             */
-           for (i = 0; i < VCSIZE; i++)
-               for (tvc = afs_vhashT[i]; tvc; tvc = tvc->hnext) {
+               i = VCHashV(&localFid);
+               for (tvc = afs_vhashTV[i]; tvc; tvc = tvc->vhnext) {
                    if (tvc->fid.Fid.Volume == a_fid->Volume) {
                        tvc->callback = NULL;
                        tvc->quick.stamp = 0;